mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- SW: fixed signed-ness issues with SOP-related angle checks.
This commit is contained in:
parent
633d205d80
commit
4c161ae403
1 changed files with 3 additions and 3 deletions
|
@ -1621,7 +1621,7 @@ DoPlayerTurnTurret(PLAYERp pp, float avel)
|
|||
avel = avel * synctics * 0.25;
|
||||
}
|
||||
|
||||
if (avel != 0)
|
||||
if (fabs(avel) >= FLT_EPSILON)
|
||||
{
|
||||
new_ang = pp->angle.ang + degang(avel);
|
||||
|
||||
|
@ -1629,9 +1629,9 @@ DoPlayerTurnTurret(PLAYERp pp, float avel)
|
|||
{
|
||||
diff = getincanglebam(buildang(sop->limit_ang_center), new_ang);
|
||||
|
||||
if (labs(diff.asbuild()) >= sop->limit_ang_delta)
|
||||
if (labs(diff.signedbuild()) >= sop->limit_ang_delta)
|
||||
{
|
||||
if (diff.asbam() < 0)
|
||||
if (diff.asbam() > INT32_MAX)
|
||||
new_ang = buildang(sop->limit_ang_center - sop->limit_ang_delta);
|
||||
else
|
||||
new_ang = buildang(sop->limit_ang_center + sop->limit_ang_delta);
|
||||
|
|
Loading…
Reference in a new issue