From 78c21bfb056263338f30e80878f84850dbc0e104 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 31 Jul 2015 15:49:47 +0200 Subject: [PATCH] - last commit was wrong (forgot to save my second change before committing. --- src/m_cheat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/m_cheat.cpp b/src/m_cheat.cpp index fe759215c..ab9c0aee7 100644 --- a/src/m_cheat.cpp +++ b/src/m_cheat.cpp @@ -149,7 +149,8 @@ void cht_DoCheat (player_t *player, int cheat) case CHT_FLY: if (player->mo != NULL) { - if ((player->mo->flags7 ^= MF7_FLYCHEAT) == MF7_FLYCHEAT) + player->mo->flags7 ^= MF7_FLYCHEAT; + if (player->mo->flags7 & MF7_FLYCHEAT) { player->mo->flags |= MF_NOGRAVITY; player->mo->flags2 |= MF2_FLY;