Skip to content

Commit

Permalink
- Duke: fixed bad check in 'ifnotmoving' CON command.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 14, 2021
1 parent 8ae6021 commit cb11891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/build/include/build.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion source/games/duke/src/gameexec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit cb11891

Please sign in to comment.