mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-29 23:41:48 +00:00
Fix divide by zero if yscale is too small a number
This commit is contained in:
parent
97107b6b6d
commit
2a4a61d4d0
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ void R_DrawVisSprite (vissprite_t *vis)
|
||||||
ESPSResult mode;
|
ESPSResult mode;
|
||||||
bool ispsprite = (!vis->sector && vis->gpos != FVector3(0, 0, 0));
|
bool ispsprite = (!vis->sector && vis->gpos != FVector3(0, 0, 0));
|
||||||
|
|
||||||
if (vis->xscale == 0 || vis->yscale == 0)
|
if (vis->xscale == 0 || fabs(vis->yscale) < (1.0f / 32000.0f))
|
||||||
{ // scaled to 0; can't see
|
{ // scaled to 0; can't see
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue