- last commit was wrong (forgot to save my second change before committing.

This commit is contained in:
Christoph Oelckers 2015-07-31 15:49:47 +02:00
parent 2be19a87ba
commit 78c21bfb05

View file

@ -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;