mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- last commit was wrong (forgot to save my second change before committing.
This commit is contained in:
parent
2be19a87ba
commit
78c21bfb05
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue