mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- sw: flykey: guard against non-godmode, bind to j by default
This commit is contained in:
parent
410d392ba8
commit
c8a74a8f3f
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue