Merge branch 'yscale_dividebyzero_fix' of http://github.com/dpjudas/dpdoom

This commit is contained in:
raa-eruanna 2016-10-14 11:52:25 -04:00
commit 00b9528e5f
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ void R_DrawVisSprite (vissprite_t *vis)
ESPSResult mode;
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
return;
}