Classic: prevent a SIGFPE when attempting to draw p'lax with nonexistent tile.

git-svn-id: https://svn.eduke32.com/eduke32@3888 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-06-15 12:52:08 +00:00
parent e2859cd133
commit 2959f86fbd

View file

@ -4480,6 +4480,9 @@ static void parascan(int32_t dax1, int32_t dax2, int32_t sectnum, char dastat, i
logtilesizy = (picsiz[globalpicnum]>>4);
tsizy = tilesizy[globalpicnum];
if (tsizy==0)
return;
globalshiftval = logtilesizy;
// before proper non-power-of-two tilesizy drawing