- sw: flykey: guard against non-godmode, bind to j by default

This commit is contained in:
Rachael Alexanderson 2020-09-25 07:44:46 -04:00 committed by Christoph Oelckers
parent 410d392ba8
commit c8a74a8f3f
2 changed files with 7 additions and 1 deletions

View file

@ -3715,8 +3715,13 @@ bool PlayerFlyKey(void)
{ {
if (!ToggleFlyMode) if (!ToggleFlyMode)
return false; return false;
ToggleFlyMode = false; ToggleFlyMode = false;
return true;
if (!GodMode)
return false;
return true;
} }
void void

View file

@ -7,3 +7,4 @@ N "useitem 4"
G "useitem 5" G "useitem 5"
F "useitem 6" F "useitem 6"
C "useitem 7" C "useitem 7"
J "fly"