mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-20 02:42:56 +00:00
Fixed incorrect scaling of particles
http://forum.zdoom.org/viewtopic.php?t=52906
This commit is contained in:
parent
41414830a5
commit
4345623e28
1 changed files with 1 additions and 1 deletions
|
@ -2505,7 +2505,7 @@ void R_ProjectParticle (particle_t *particle, const sector_t *sector, int shade,
|
||||||
if (x1 >= x2)
|
if (x1 >= x2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
yscale = xs_RoundToInt(YaspectMul * xscale);
|
yscale = YaspectMul * xscale;
|
||||||
ty = particle->Pos.Z - ViewPos.Z;
|
ty = particle->Pos.Z - ViewPos.Z;
|
||||||
y1 = xs_RoundToInt(CenterY - (ty + psize) * yscale);
|
y1 = xs_RoundToInt(CenterY - (ty + psize) * yscale);
|
||||||
y2 = xs_RoundToInt(CenterY - (ty - psize) * yscale);
|
y2 = xs_RoundToInt(CenterY - (ty - psize) * yscale);
|
||||||
|
|
Loading…
Reference in a new issue