mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 00:21:34 +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:
|
case CHT_FLY:
|
||||||
if (player->mo != NULL)
|
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->flags |= MF_NOGRAVITY;
|
||||||
player->mo->flags2 |= MF2_FLY;
|
player->mo->flags2 |= MF2_FLY;
|
||||||
|
|
Loading…
Reference in a new issue