mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Fixed: Accidentally left in /65536.0 in WallMost()
This commit is contained in:
parent
8bda356412
commit
ee43c4ff95
1 changed files with 2 additions and 2 deletions
|
@ -2910,12 +2910,12 @@ int WallMost (short *mostbuf, const secplane_t &plane, const FWallCoords *wallc)
|
||||||
y = z1 * InvZtoScale / iy1;
|
y = z1 * InvZtoScale / iy1;
|
||||||
if (ix2 == ix1)
|
if (ix2 == ix1)
|
||||||
{
|
{
|
||||||
mostbuf[ix1] = (short)xs_RoundToInt(y/65536.0 + CenterY);
|
mostbuf[ix1] = (short)xs_RoundToInt(y + CenterY);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fixed_t yinc = FLOAT2FIXED(((z2 * InvZtoScale / iy2) - y) / (ix2-ix1));
|
fixed_t yinc = FLOAT2FIXED(((z2 * InvZtoScale / iy2) - y) / (ix2-ix1));
|
||||||
qinterpolatedown16short (&mostbuf[ix1], ix2-ix1, FLOAT2FIXED(y/65536.0 + CenterY), yinc);
|
qinterpolatedown16short (&mostbuf[ix1], ix2-ix1, FLOAT2FIXED(y + CenterY), yinc);
|
||||||
}
|
}
|
||||||
|
|
||||||
return bad;
|
return bad;
|
||||||
|
|
Loading…
Reference in a new issue