Polymost: don't attempt to draw sprite with void tile, preventing div-by-0s later

git-svn-id: https://svn.eduke32.com/eduke32@2760 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-06-13 23:13:36 +00:00
parent 84cb4fd6ca
commit 41921e728c

View file

@ -5027,6 +5027,9 @@ void polymost_drawsprite(int32_t snum)
tsizy = h_ysize[globalpicnum];
}
if (tsizx<=0 || tsizy<=0)
return;
switch ((globalorientation>>4)&3)
{
case 0: //Face sprite