mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- eliminated spritetypebase::setpos, which was the last remaining method in this struct.
This commit is contained in:
parent
7f62df517d
commit
51abee4351
2 changed files with 2 additions and 8 deletions
|
@ -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())
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue