mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
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:
parent
84cb4fd6ca
commit
41921e728c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue