mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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:
parent
6b5cf9525b
commit
f94b38b138
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue