From 2be19a87ba697b8969b0f3e0b97c9fec6d8ce826 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 31 Jul 2015 15:47:47 +0200 Subject: [PATCH] - fixed some bad boolean logic in fly cheat command. --- src/m_cheat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_cheat.cpp b/src/m_cheat.cpp index 170c65021..fe759215c 100644 --- a/src/m_cheat.cpp +++ b/src/m_cheat.cpp @@ -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;