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:
helixhorned 2013-02-01 13:05:10 +00:00
parent 14e97b2a57
commit 03e819a3cb

View file

@ -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[])
#define ACCESS_SET 1
#define ACCESS_USEVARS 2
#define ACCESS_SPRITEEXT 4
/// This file is #included into other files, so don't define variables here!
@ -396,22 +395,11 @@ static int32_t __fastcall VM_AccessTsprite(int32_t how, int32_t lVar1, int32_t l
i = Gv_GetVarX(lVar1);
if (!lightp)
{
if (how&ACCESS_SPRITEEXT)
{
if ((unsigned)i >= MAXSPRITES)
goto badsprite;
datspr = spriteext[i].tspr;
if (!datspr)
goto badtspr;
}
else
{
if (i<0 || i>=spritesortcnt)
goto badsprite;
datspr = &tsprite[i];
}
}
else
{
// access Polymer light
@ -580,9 +568,6 @@ static int32_t __fastcall VM_AccessTsprite(int32_t how, int32_t lVar1, int32_t l
badsprite:
M32_ERROR("invalid target sprite (%d)", i);
return -1;
badtspr:
M32_ERROR("Internal bug, tsprite is unavailable");
return -1;
readonly:
M32_ERROR("structure member `%s' is read-only.", dalabel->name);
return -1;
@ -590,4 +575,3 @@ readonly:
#undef ACCESS_SET
#undef ACCESS_USEVARS
#undef ACCESS_SPRITEEXT