mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Defs: Expand use of check_tile().
git-svn-id: https://svn.eduke32.com/eduke32@5137 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5678b690a2
commit
c26149fd1f
1 changed files with 6 additions and 3 deletions
|
@ -531,7 +531,8 @@ static int32_t defsparser(scriptfile *script)
|
|||
int32_t tile, tmp;
|
||||
|
||||
if (scriptfile_getsymbol(script,&tile)) break;
|
||||
if ((unsigned)tile >= MAXUSERTILES) break;
|
||||
if (check_tile("setuptile", tile, script, cmdtokptr))
|
||||
break;
|
||||
if (scriptfile_getsymbol(script,&tmp)) break; // XXX
|
||||
h_xsize[tile] = tmp;
|
||||
if (scriptfile_getsymbol(script,&tmp)) break;
|
||||
|
@ -741,7 +742,8 @@ static int32_t defsparser(scriptfile *script)
|
|||
if (scriptfile_getsymbol(script,&xsiz)) break;
|
||||
if (scriptfile_getsymbol(script,&ysiz)) break;
|
||||
|
||||
if ((unsigned)tile >= (unsigned)MAXUSERTILES) break;
|
||||
if (check_tile("dummytile", tile, script, cmdtokptr))
|
||||
break;
|
||||
|
||||
if ((int16_t) xsiz == 0 || (int16_t) ysiz == 0)
|
||||
{
|
||||
|
@ -796,7 +798,8 @@ static int32_t defsparser(scriptfile *script)
|
|||
|
||||
if (scriptfile_getsymbol(script,&tile)) break;
|
||||
|
||||
if ((unsigned)tile >= (unsigned)MAXUSERTILES) break;
|
||||
if (check_tile("undefinetile", tile, script, cmdtokptr))
|
||||
break;
|
||||
|
||||
undefinetile(tile);
|
||||
|
||||
|
|
Loading…
Reference in a new issue