mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-17 21:10:53 +00:00
RR: Reset one_eighty_count if player angle input is detected.
This commit is contained in:
parent
2c13e746c5
commit
d411defd04
1 changed files with 5 additions and 0 deletions
|
@ -3504,6 +3504,11 @@ void P_GetInput(int const playerNum)
|
||||||
{
|
{
|
||||||
localInput.q16avel = fix16_sadd(localInput.q16avel, input.q16avel);
|
localInput.q16avel = fix16_sadd(localInput.q16avel, input.q16avel);
|
||||||
pPlayer->q16ang = fix16_sadd(pPlayer->q16ang, input.q16avel) & 0x7FFFFFF;
|
pPlayer->q16ang = fix16_sadd(pPlayer->q16ang, input.q16avel) & 0x7FFFFFF;
|
||||||
|
|
||||||
|
if (input.q16avel)
|
||||||
|
{
|
||||||
|
pPlayer->one_eighty_count = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(movementLocked & IL_NOHORIZ))
|
if (!(movementLocked & IL_NOHORIZ))
|
||||||
|
|
Loading…
Reference in a new issue