- 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
{
kHitNone = 0,
kHitTypeMask = 0xE000,
kHitIndexMask = 0x1FFF,
kHitTypeMask = 0xC000,
kHitIndexMask = 0x3FFF,
kHitSector = 0x4000,
kHitWall = 0x8000,
kHitSprite = 0xC000,

View File

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