SW: Modify getinput to update oq16ang/oq16horiz with the same amount

of change that camq16ang/camq16horiz gets. Such an update is possible
after making sure that UpdateInputs (faketimerhandler) is
never called from domovethings.

# Conflicts:
#	source/sw/src/game.cpp
This commit is contained in:
NY00123 2020-05-22 02:29:32 +03:00 committed by Christoph Oelckers
parent 6b5cf9525b
commit f94b38b138

View file

@ -3287,10 +3287,14 @@ getinput(SW_PACKET *loc, SWBOOL tied)
}
else
{
fix16_t prevcamq16ang = pp->camq16ang, prevcamq16horiz = pp->camq16horiz;
if (TEST(pp->Flags2, PF2_INPUT_CAN_TURN))
DoPlayerTurn(pp, &pp->camq16ang, q16angvel);
if (TEST(pp->Flags2, PF2_INPUT_CAN_AIM))
DoPlayerHorizon(pp, &pp->camq16horiz, q16aimvel);
pp->oq16ang += pp->camq16ang - prevcamq16ang;
pp->oq16horiz += pp->camq16horiz - prevcamq16horiz;
}
loc->vel += vel;