- deleted GetSpriteIndex.

It's not needed anymore.
This commit is contained in:
Christoph Oelckers 2021-12-05 21:17:42 +01:00
parent 382689e0a7
commit 42e4e9288f
4 changed files with 2 additions and 13 deletions

View file

@ -465,7 +465,6 @@ void SetupActors(PClass* clstype)
for (int i = 0; i < 16384; i++)
{
actorArray[i] = static_cast<DCoreActor*>(clstype->CreateNew());
actorArray[i]->index = i;
actorArray[i]->Release(); // no GC for this static array.
}
}

View file

@ -8,10 +8,6 @@ class DCoreActor : public DObject
DECLARE_CLASS(DCoreActor, DObject)
HAS_OBJECT_POINTERS
// common part of the game actors
//protected:
public:
int index; // this will go away very soon.
public:
// These two are needed because we cannot rely on the ones in the sprites for unlinking.
@ -82,12 +78,6 @@ public:
return s().time;
}
int GetSpriteIndex() const
{
// this is only here to mark places that need changing later! It will be removed once the sprite array goes.
return index;
}
sectortype* sector() const
{
return s().sector();

View file

@ -75,7 +75,7 @@ size_t DBloodActor::PropagateMark()
{
condition[0].Mark();
condition[1].Mark();
return 2;
return 2 + Super::PropagateMark();
}
void InitCheats();

View file

@ -752,7 +752,7 @@ DDukeActor* spawninit_d(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
case WATERBUBBLEMAKER:
if (sp->hitag && sp->picnum == WATERBUBBLEMAKER)
{ // JBF 20030913: Pisses off move(), eg. in bobsp2
Printf(TEXTCOLOR_YELLOW "WARNING: WATERBUBBLEMAKER %d @ %d,%d with hitag!=0. Applying fixup.\n", act->GetSpriteIndex(), sp->x, sp->y);
Printf(TEXTCOLOR_YELLOW "WARNING: WATERBUBBLEMAKER %d @ %d,%d with hitag!=0. Applying fixup.\n", act->GetIndex(), sp->x, sp->y);
sp->hitag = 0;
}
sp->cstat |= 32768;