- Duke: fixed bad check in 'ifnotmoving' CON command.

This commit is contained in:
Christoph Oelckers 2021-05-14 10:03:07 +02:00
parent 645ea1e1ae
commit 5ae1c334fa
2 changed files with 3 additions and 3 deletions

View file

@ -704,8 +704,8 @@ extern int32_t(*changespritestat_replace)(int16_t spritenum, int16_t newstatnum)
enum EHitBits enum EHitBits
{ {
kHitNone = 0, kHitNone = 0,
kHitTypeMask = 0xE000, kHitTypeMask = 0xC000,
kHitIndexMask = 0x1FFF, kHitIndexMask = 0x3FFF,
kHitSector = 0x4000, kHitSector = 0x4000,
kHitWall = 0x8000, kHitWall = 0x8000,
kHitSprite = 0xC000, kHitSprite = 0xC000,

View file

@ -2809,7 +2809,7 @@ int ParseState::parse(void)
parseifelse( fi.floorspace(g_sp->sectnum)); parseifelse( fi.floorspace(g_sp->sectnum));
break; break;
case concmd_ifnotmoving: case concmd_ifnotmoving:
parseifelse( (g_ac->movflag&kHitTypeMask) > kHitSprite ); parseifelse( (g_ac->movflag&kHitTypeMask) > kHitSector );
break; break;
case concmd_respawnhitag: case concmd_respawnhitag:
insptr++; insptr++;