From ce2d521b8ffd9d9819cb12f0f4b8542efd1ed0bb Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 29 Nov 2013 20:03:50 +0100 Subject: [PATCH] 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. --- apps/openmw/mwworld/worldimp.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 691c7fea47..3d0bcf6d87 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -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);