mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
m32script: remove unused tsprite access via spriteext[].tspr.
git-svn-id: https://svn.eduke32.com/eduke32@3449 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
14e97b2a57
commit
03e819a3cb
1 changed files with 3 additions and 19 deletions
|
@ -33,7 +33,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
// how: bitfield: 1=set? 2=vars? 4=use spriteext[].tspr? (otherwise use tsprite[])
|
// how: bitfield: 1=set? 2=vars? 4=use spriteext[].tspr? (otherwise use tsprite[])
|
||||||
#define ACCESS_SET 1
|
#define ACCESS_SET 1
|
||||||
#define ACCESS_USEVARS 2
|
#define ACCESS_USEVARS 2
|
||||||
#define ACCESS_SPRITEEXT 4
|
|
||||||
|
|
||||||
|
|
||||||
/// This file is #included into other files, so don't define variables here!
|
/// This file is #included into other files, so don't define variables here!
|
||||||
|
@ -397,20 +396,9 @@ static int32_t __fastcall VM_AccessTsprite(int32_t how, int32_t lVar1, int32_t l
|
||||||
|
|
||||||
if (!lightp)
|
if (!lightp)
|
||||||
{
|
{
|
||||||
if (how&ACCESS_SPRITEEXT)
|
if (i<0 || i>=spritesortcnt)
|
||||||
{
|
goto badsprite;
|
||||||
if ((unsigned)i >= MAXSPRITES)
|
datspr = &tsprite[i];
|
||||||
goto badsprite;
|
|
||||||
datspr = spriteext[i].tspr;
|
|
||||||
if (!datspr)
|
|
||||||
goto badtspr;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (i<0 || i>=spritesortcnt)
|
|
||||||
goto badsprite;
|
|
||||||
datspr = &tsprite[i];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -580,9 +568,6 @@ static int32_t __fastcall VM_AccessTsprite(int32_t how, int32_t lVar1, int32_t l
|
||||||
badsprite:
|
badsprite:
|
||||||
M32_ERROR("invalid target sprite (%d)", i);
|
M32_ERROR("invalid target sprite (%d)", i);
|
||||||
return -1;
|
return -1;
|
||||||
badtspr:
|
|
||||||
M32_ERROR("Internal bug, tsprite is unavailable");
|
|
||||||
return -1;
|
|
||||||
readonly:
|
readonly:
|
||||||
M32_ERROR("structure member `%s' is read-only.", dalabel->name);
|
M32_ERROR("structure member `%s' is read-only.", dalabel->name);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -590,4 +575,3 @@ readonly:
|
||||||
|
|
||||||
#undef ACCESS_SET
|
#undef ACCESS_SET
|
||||||
#undef ACCESS_USEVARS
|
#undef ACCESS_USEVARS
|
||||||
#undef ACCESS_SPRITEEXT
|
|
||||||
|
|
Loading…
Reference in a new issue