Use GetSpawnX() methods instead of peeking into some attribute that

may change.
This commit is contained in:
Marco Cawthorne 2021-09-16 18:40:06 +02:00
parent 5015de91cd
commit 1a34688c06
Signed by: eukara
GPG key ID: C196CD8BA993248A
2 changed files with 3 additions and 3 deletions

View file

@ -136,7 +136,7 @@ armoury_entity::touch(void)
void
armoury_entity::Respawn(void)
{
SetModel(m_oldModel);
SetModel(GetSpawnModel());
setsize(this, [-16,-16,0], [16,16,16]);
solid = SOLID_TRIGGER;
m_iLeft = m_iCount;

View file

@ -55,8 +55,8 @@ item_suit::Respawn(void)
SetSolid(SOLID_TRIGGER);
SetMovetype(MOVETYPE_TOSS);
SetSize(VEC_HULL_MIN, VEC_HULL_MAX);
SetOrigin(m_oldOrigin);
SetModel(m_oldModel);
SetOrigin(GetSpawnOrigin());
SetModel(GetSpawnModel());
think = __NULL__;
nextthink = -1;