mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
Add PedanticQ16AngleFloor to sw/src/game.h and use it in DoPlayerTurn
This commit is contained in:
parent
b84975e406
commit
36e6dee64c
2 changed files with 8 additions and 6 deletions
|
@ -1626,9 +1626,7 @@ DoPlayerTurn(PLAYERp pp, fix16_t *pq16ang, fix16_t q16angvel)
|
|||
q16angvel += fix16_sdiv(q16angvel, fix16_from_int(4));
|
||||
|
||||
*pq16ang += fix16_sdiv(fix16_mul(q16angvel, fix16_from_int(synctics)), fix16_from_int(32));
|
||||
*pq16ang = NORM_Q16ANGLE(*pq16ang);
|
||||
if (PedanticMode)
|
||||
*pq16ang = fix16_floor(*pq16ang);
|
||||
*pq16ang = PedanticQ16AngleFloor(NORM_Q16ANGLE(*pq16ang));
|
||||
|
||||
// update players sprite angle
|
||||
// NOTE: It's also updated in UpdatePlayerSprite, but needs to be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue