Duke3D: Reset one_eighty_count if player angle input is detected.

This commit is contained in:
Mitchell Richters 2020-05-13 19:46:09 +10:00 committed by Christoph Oelckers
parent 5f59c1364c
commit 2c13e746c5

View file

@ -3322,6 +3322,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))