- fixed some bad boolean logic in fly cheat command.

This commit is contained in:
Christoph Oelckers 2015-07-31 15:47:47 +02:00
parent 7163aa9667
commit 2be19a87ba
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ void cht_DoCheat (player_t *player, int cheat)
case CHT_FLY:
if (player->mo != NULL)
{
if ((player->mo->flags7 ^= MF7_FLYCHEAT) != 0)
if ((player->mo->flags7 ^= MF7_FLYCHEAT) == MF7_FLYCHEAT)
{
player->mo->flags |= MF_NOGRAVITY;
player->mo->flags2 |= MF2_FLY;