- fixed keyboard turning.

Why did it only apply the chance each 4th call instead of doing it smoothly???
This commit is contained in:
Christoph Oelckers 2019-12-27 17:35:13 +01:00
parent 7e758a5e48
commit 907c2bbe1e

View file

@ -170,7 +170,7 @@ void PlayerInterruptKeys()
}
// JBF: Run key behaviour is selectable
int const playerRunning = false;// G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
int const turnAmount = playerRunning ? 12 : 8;
int const keyMove = playerRunning ? 12 : 6;
constexpr int const analogTurnAmount = 12;
@ -248,8 +248,9 @@ void PlayerInterruptKeys()
turn = 0;
}
if ((counter++) % 4 == 0)
q16avel += fix16_from_int(turn<<2);
//if ((counter++) % 4 == 0) // what was this for???
q16avel += fix16_from_int(turn);
}
if (buttonMap.ButtonDown(gamefunc_Strafe_Left))