mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-02 20:01:23 +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];
|
tsizy = h_ysize[globalpicnum];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tsizx<=0 || tsizy<=0)
|
||||||
|
return;
|
||||||
|
|
||||||
switch ((globalorientation>>4)&3)
|
switch ((globalorientation>>4)&3)
|
||||||
{
|
{
|
||||||
case 0: //Face sprite
|
case 0: //Face sprite
|
||||||
|
|
Loading…
Reference in a new issue