1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-12 12:38:02 +00:00

Always apply queued movement, even when there's no duration. Fixes crash with --start="bal isra".

When a script disables a reference that still has movement queued, trying to apply that movement will then fail due to the reference not being in the scene. Therefore, we should make sure that movement is always applied in the frame that it's queued in.
This commit is contained in:
scrawl 2013-11-29 20:03:50 +01:00
parent ffc885853a
commit ce2d521b8f

View File

@ -1127,10 +1127,6 @@ namespace MWWorld
void World::doPhysics(float duration)
{
/* No duration? Shouldn't be any movement, then. */
if(duration <= 0.0f)
return;
processDoors(duration);
moveProjectiles(duration);