Characters that aren't inside a hull or can't enter subs won't attempt to play a walking animation

This commit is contained in:
Regalis
2016-09-07 20:18:52 +03:00
parent 9463b18993
commit 94cec67a2b

View File

@@ -77,7 +77,7 @@ namespace Barotrauma
{
UpdateSineAnim(deltaTime);
}
else
else if (currentHull != null && CanEnterSubmarine)
{
UpdateWalkAnim(deltaTime);
}
@@ -119,7 +119,6 @@ namespace Barotrauma
}
}
//if (stunTimer > gameTime.TotalGameTime.TotalMilliseconds) return;
if (!flip) return;
flipTimer += deltaTime;