mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-19 13:40:51 +00:00
Use floating point xscale in R_RenderFakeWall()
This commit is contained in:
parent
a029c7b664
commit
d970be48f9
1 changed files with 3 additions and 3 deletions
|
@ -558,7 +558,7 @@ clearfog:
|
||||||
void R_RenderFakeWall(drawseg_t *ds, int x1, int x2, F3DFloor *rover)
|
void R_RenderFakeWall(drawseg_t *ds, int x1, int x2, F3DFloor *rover)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
fixed_t xscale;
|
double xscale;
|
||||||
double yscale;
|
double yscale;
|
||||||
|
|
||||||
fixed_t Alpha = Scale(rover->alpha, OPAQUE, 255);
|
fixed_t Alpha = Scale(rover->alpha, OPAQUE, 255);
|
||||||
|
@ -599,7 +599,7 @@ void R_RenderFakeWall(drawseg_t *ds, int x1, int x2, F3DFloor *rover)
|
||||||
scaledside = rover->master->sidedef[0];
|
scaledside = rover->master->sidedef[0];
|
||||||
scaledpart = side_t::mid;
|
scaledpart = side_t::mid;
|
||||||
}
|
}
|
||||||
xscale = FLOAT2FIXED(rw_pic->Scale.X * scaledside->GetTextureXScale(scaledpart));
|
xscale = rw_pic->Scale.X * scaledside->GetTextureXScale(scaledpart);
|
||||||
yscale = rw_pic->Scale.Y * scaledside->GetTextureYScale(scaledpart);
|
yscale = rw_pic->Scale.Y * scaledside->GetTextureYScale(scaledpart);
|
||||||
|
|
||||||
double rowoffset = curline->sidedef->GetTextureYOffset(side_t::mid) + rover->master->sidedef[0]->GetTextureYOffset(side_t::mid);
|
double rowoffset = curline->sidedef->GetTextureYOffset(side_t::mid) + rover->master->sidedef[0]->GetTextureYOffset(side_t::mid);
|
||||||
|
@ -616,7 +616,7 @@ void R_RenderFakeWall(drawseg_t *ds, int x1, int x2, F3DFloor *rover)
|
||||||
// still be positioned in world units rather than texels.
|
// still be positioned in world units rather than texels.
|
||||||
|
|
||||||
dc_texturemid = dc_texturemid + rowoffset * yscale;
|
dc_texturemid = dc_texturemid + rowoffset * yscale;
|
||||||
rw_offset = MulScale16 (rw_offset, xscale);
|
rw_offset = xs_RoundToInt(rw_offset * xscale);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue