mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- fixed some bad boolean logic in fly cheat command.
This commit is contained in:
parent
7163aa9667
commit
2be19a87ba
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue