diff --git a/source/core/actorlist.cpp b/source/core/actorlist.cpp index 2db2e60da..21c5fcda4 100644 --- a/source/core/actorlist.cpp +++ b/source/core/actorlist.cpp @@ -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()) diff --git a/source/core/maptypes.h b/source/core/maptypes.h index 0689797c6..5cf977b77 100644 --- a/source/core/maptypes.h +++ b/source/core/maptypes.h @@ -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; - } };