mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
SW: Trim q16 angle and horiz during demo playback/recording.
This uses the newly introduced PEDANTIC_MODE macro.
This commit is contained in:
parent
8284fcba9a
commit
6faa73286f
3 changed files with 12 additions and 0 deletions
|
@ -1603,6 +1603,8 @@ DoPlayerTurn(PLAYERp pp)
|
|||
|
||||
pp->q16ang += fix16_sdiv(fix16_mul(q16avel, fix16_from_int(synctics)), fix16_from_int(32));
|
||||
pp->q16ang = NORM_Q16ANGLE(pp->q16ang);
|
||||
if (PEDANTIC_MODE)
|
||||
pp->q16ang = fix16_floor(pp->q16ang);
|
||||
|
||||
// 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