Fix level restart

This commit is contained in:
nukeykt 2019-09-01 01:37:21 +09:00 committed by Christoph Oelckers
parent 0023ae625d
commit a00d0f5986
2 changed files with 3 additions and 8 deletions

View file

@ -111,10 +111,6 @@ void GetLocalInput()
lLocalButtons |= BUTTON(gamefunc_Open) << 2;
if (BUTTON(gamefunc_Open)) {
int breakme = 123;
}
// TODO ExecRecord(&sPlayerInput[nLocalPlayer], sizeof(PlayerInput));
}

View file

@ -140,6 +140,9 @@ fixed droll;
void PlayerInterruptKeys()
{
ControlInfo info;
CONTROL_ProcessBinds();
memset(&info, 0, sizeof(ControlInfo)); // this is done within CONTROL_GetInput() anyway
CONTROL_GetInput(&info);
if (PlayerList[nLocalPlayer].nHealth == 0)
{
@ -149,10 +152,6 @@ void PlayerInterruptKeys()
return;
}
memset(&info, 0, sizeof(ControlInfo)); // this is done within CONTROL_GetInput() anyway
CONTROL_ProcessBinds();
CONTROL_GetInput(&info);
info.dyaw *= (lMouseSens >> 1) + 1;
int nXVel, nYVel;