(ef6d724ea) Fixed: Invalid pathname when triggering a video for the first time

This commit is contained in:
Joonas Rikkonen
2019-03-27 20:48:13 +02:00
parent 7140151882
commit 27efec90c9
7 changed files with 223 additions and 12 deletions
@@ -1196,6 +1196,19 @@ namespace Barotrauma
return (int)Math.Ceiling(ConvertUnits.ToDisplayUnits(colliderSize) / Structure.WallSectionSize);
}
#endregion
protected override void OnStateChanged(AIState from, AIState to)
{
latchOntoAI?.DeattachFromBody();
Character.AnimController.ReleaseStuckLimbs();
}
private int GetMinimumPassableHoleCount()
{
return (int)Math.Ceiling(ConvertUnits.ToDisplayUnits(colliderSize) / Structure.WallSectionSize);
}
private bool CanPassThroughHole(Structure wall, int sectionIndex)
{
int requiredHoleCount = GetMinimumPassableHoleCount();