mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Don't activate gamefunc_Toggle_Crouch if cheat_phase is non-zero
git-svn-id: https://svn.eduke32.com/eduke32@8244 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6f6d568720
commit
4c28d25e3f
1 changed files with 1 additions and 1 deletions
|
@ -3054,7 +3054,7 @@ void P_GetInput(int const playerNum)
|
|||
int const sectorLotag = pPlayer->cursectnum != -1 ? sector[pPlayer->cursectnum].lotag : 0;
|
||||
int const crouchable = sectorLotag != 2 && (sectorLotag != 1 || pPlayer->spritebridge);
|
||||
|
||||
if (BUTTON(gamefunc_Toggle_Crouch))
|
||||
if (pPlayer->cheat_phase == 0 && BUTTON(gamefunc_Toggle_Crouch))
|
||||
{
|
||||
pPlayer->crouch_toggle = !pPlayer->crouch_toggle && crouchable;
|
||||
|
||||
|
|
Loading…
Reference in a new issue