RR: Reset one_eighty_count if player angle input is detected.

This commit is contained in:
Mitchell Richters 2020-05-13 19:49:01 +10:00 committed by Christoph Oelckers
parent 2c13e746c5
commit d411defd04

View file

@ -3504,6 +3504,11 @@ void P_GetInput(int const playerNum)
{
localInput.q16avel = fix16_sadd(localInput.q16avel, input.q16avel);
pPlayer->q16ang = fix16_sadd(pPlayer->q16ang, input.q16avel) & 0x7FFFFFF;
if (input.q16avel)
{
pPlayer->one_eighty_count = 0;
}
}
if (!(movementLocked & IL_NOHORIZ))