mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 13:21:04 +00:00
- SW: Fix Q16.16 operation not using m_fixed inlines. The one that got away...
This commit is contained in:
parent
17da849add
commit
9605e41f9f
1 changed files with 1 additions and 1 deletions
|
@ -1580,7 +1580,7 @@ DoPlayerTurn(PLAYERp pp, fixed_t *pq16ang, fixed_t q16angvel)
|
||||||
// the rest will follow
|
// the rest will follow
|
||||||
delta_ang = GetDeltaAngle(pp->turn180_target, FixedToInt(*pq16ang));
|
delta_ang = GetDeltaAngle(pp->turn180_target, FixedToInt(*pq16ang));
|
||||||
if (cl_syncinput)
|
if (cl_syncinput)
|
||||||
*pq16ang = NORM_Q16ANGLE(*pq16ang + ((labs(delta_ang) >> TURN_SHIFT) << FRACBITS));
|
*pq16ang = NORM_Q16ANGLE(*pq16ang + IntToFixed(labs(delta_ang) >> TURN_SHIFT));
|
||||||
else
|
else
|
||||||
// Add at least 1 unit to ensure the turn direction is clockwise
|
// Add at least 1 unit to ensure the turn direction is clockwise
|
||||||
*pq16ang = NORM_Q16ANGLE(*pq16ang + max(FRACUNIT, FloatToFixed(scaleAdjustmentToInterval(labs(delta_ang) >> TURN_SHIFT))));
|
*pq16ang = NORM_Q16ANGLE(*pq16ang + max(FRACUNIT, FloatToFixed(scaleAdjustmentToInterval(labs(delta_ang) >> TURN_SHIFT))));
|
||||||
|
|
Loading…
Reference in a new issue