mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 10:11:04 +00:00
- tileDelete / tileSetDummy
This commit is contained in:
parent
9a52e8039c
commit
bb78db71bc
5 changed files with 40 additions and 42 deletions
|
@ -1027,18 +1027,7 @@ static int32_t defsparser(scriptfile *script)
|
|||
if (check_tile("dummytile", tile, script, cmdtokptr))
|
||||
break;
|
||||
|
||||
if ((int16_t) xsiz == 0 || (int16_t) ysiz == 0)
|
||||
{
|
||||
tileDelete(tile);
|
||||
break;
|
||||
}
|
||||
|
||||
if (xsiz > 0 && ysiz > 0)
|
||||
{
|
||||
tileSetSize(tile, xsiz, ysiz);
|
||||
picanm[tile] = {};
|
||||
tileSetupDummy(tile);
|
||||
}
|
||||
tileSetDummy(tile, xsiz, ysiz);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -1057,18 +1046,9 @@ static int32_t defsparser(scriptfile *script)
|
|||
if (xsiz < 0 || ysiz < 0)
|
||||
break; // TODO: message
|
||||
|
||||
if ((int16_t) xsiz == 0 || (int16_t) ysiz == 0)
|
||||
{
|
||||
for (i=tile1; i<=tile2; i++)
|
||||
tileDelete(i);
|
||||
break;
|
||||
}
|
||||
|
||||
for (i=tile1; i<=tile2; i++)
|
||||
{
|
||||
tileSetSize(i, xsiz, ysiz);
|
||||
picanm[i] = {};
|
||||
tileSetupDummy(i);
|
||||
tileSetDummy(i, xsiz, ysiz);
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -2281,9 +2261,7 @@ static int32_t defsparser(scriptfile *script)
|
|||
|
||||
if (xsiz > 0 && ysiz > 0)
|
||||
{
|
||||
tileSetSize(tile, xsiz, ysiz);
|
||||
picanm[tile] = {};
|
||||
tileSetupDummy(tile);
|
||||
tileSetDummy(tile, xsiz, ysiz);
|
||||
}
|
||||
#ifdef USE_OPENGL
|
||||
xscale = 1.0f / xscale;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue