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:
terminx 2019-10-20 17:55:32 +00:00 committed by Christoph Oelckers
parent 6f6d568720
commit 4c28d25e3f
1 changed files with 1 additions and 1 deletions

View File

@ -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;