aboutsummaryrefslogtreecommitdiff
path: root/engines/dm
diff options
context:
space:
mode:
authorStrangerke2016-09-04 20:49:45 +0200
committerStrangerke2016-09-04 20:49:45 +0200
commit1a9f9c54aafa81648bf2400529e4c6d6cb906350 (patch)
treeaaf7fa6cf26d49ecbef286b8622857d166899019 /engines/dm
parent3df32ecf204f301c2dc2348c0a6369d06a310504 (diff)
downloadscummvm-rg350-1a9f9c54aafa81648bf2400529e4c6d6cb906350.tar.gz
scummvm-rg350-1a9f9c54aafa81648bf2400529e4c6d6cb906350.tar.bz2
scummvm-rg350-1a9f9c54aafa81648bf2400529e4c6d6cb906350.zip
DM: Fix original bug in isLevitating
Diffstat (limited to 'engines/dm')
-rw-r--r--engines/dm/movesens.cpp6
1 files changed, 2 insertions, 4 deletions
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;