- eliminated spritetypebase::setpos, which was the last remaining method in this struct.

This commit is contained in:
Christoph Oelckers 2021-12-30 17:49:16 +01:00
parent 7f62df517d
commit 51abee4351
2 changed files with 2 additions and 8 deletions

View file

@ -445,7 +445,7 @@ void InitSpriteLists()
void SetActor(DCoreActor* actor, const vec3_t* newpos)
{
auto tempsector = actor->sector();
actor->spr.setpos(*newpos);
actor->spr.pos = *newpos;
updatesector(newpos->X, newpos->Y, &tempsector);
if (tempsector && tempsector != actor->sector())
@ -455,7 +455,7 @@ void SetActor(DCoreActor* actor, const vec3_t* newpos)
void SetActorZ(DCoreActor* actor, const vec3_t* newpos)
{
auto tempsector = actor->sector();
actor->spr.setpos(*newpos);
actor->spr.pos = *newpos;
updatesectorz(newpos->X, newpos->Y, newpos->Z, &tempsector);
if (tempsector && tempsector != actor->sector())

View file

@ -445,12 +445,6 @@ struct spritetypebase
// extensions not from the binary map format.
int time;
uint16_t cstat2;
void setpos(const vec3_t& newpos)
{
pos = newpos;
}
};