mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Bounds-check the tile number gotten from EVENT_GETMENUTILE.
git-svn-id: https://svn.eduke32.com/eduke32@4034 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8d84706dc9
commit
e0e3973b47
1 changed files with 4 additions and 3 deletions
|
@ -3952,6 +3952,7 @@ void G_DrawBackground(void)
|
|||
if (!fstilep)
|
||||
#endif
|
||||
{
|
||||
if ((unsigned)bgtile < MAXTILES)
|
||||
for (y=y1; y<y2; y+=tilesizy[bgtile])
|
||||
for (x=0; x<xdim; x+=tilesizx[bgtile])
|
||||
rotatesprite_fs(x<<16,y<<16,65536L,0,bgtile,16,0,8+16+64);
|
||||
|
|
Loading…
Reference in a new issue