From 1a9f9c54aafa81648bf2400529e4c6d6cb906350 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 4 Sep 2016 20:49:45 +0200 Subject: DM: Fix original bug in isLevitating --- engines/dm/movesens.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/dm/movesens.cpp') diff --git a/engines/dm/movesens.cpp b/engines/dm/movesens.cpp index d5e941f142..38db12e6ea 100644 --- a/engines/dm/movesens.cpp +++ b/engines/dm/movesens.cpp @@ -503,10 +503,8 @@ bool MovesensMan::isLevitating(Thing thing) { bool retVal = false; if (thingType == k4_GroupThingType) retVal = getFlag(_vm->_dungeonMan->getCreatureAttributes(thing), k0x0020_MaskCreatureInfo_levitation); - else if (thingType == k14_ProjectileThingType) - /* BUG0_26 An explosion may fall in a pit. If a pit is opened while there is an explosion above then the explosion - falls into the pit in getMoveResult(). Explosions are not considered as levitating so they are moved when the pit - is opened. This function should return true for explosions */ + else if ((thingType == k14_ProjectileThingType) || (thingType == k15_ExplosionThingType)) + // Fix original bug involving explosions falling in pits retVal = true; return retVal; -- cgit v1.2.3