mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +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)
|
if (!fstilep)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
if ((unsigned)bgtile < MAXTILES)
|
||||||
for (y=y1; y<y2; y+=tilesizy[bgtile])
|
for (y=y1; y<y2; y+=tilesizy[bgtile])
|
||||||
for (x=0; x<xdim; x+=tilesizx[bgtile])
|
for (x=0; x<xdim; x+=tilesizx[bgtile])
|
||||||
rotatesprite_fs(x<<16,y<<16,65536L,0,bgtile,16,0,8+16+64);
|
rotatesprite_fs(x<<16,y<<16,65536L,0,bgtile,16,0,8+16+64);
|
||||||
|
|
Loading…
Reference in a new issue