mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- calcviewpitch(): Fix issue with returning horizoff
to 0 from negative slope.
This commit is contained in:
parent
8003753989
commit
dac08a2cb9
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ void calcviewpitch(vec2_t const pos, fixedhoriz* horizoff, binangle const ang, b
|
|||
}
|
||||
if (horizoff->asq16() < 0)
|
||||
{
|
||||
*horizoff += q16horiz(xs_CRoundToInt(-scaleAdjust * ((horizoff->asq16() >> 3) + FRACUNIT)));
|
||||
*horizoff += q16horiz(xs_CRoundToInt(-scaleAdjust * ((horizoff->asq16() >> 3) - FRACUNIT)));
|
||||
if (horizoff->asq16() > 0) *horizoff = q16horiz(0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue