Use GetSpawnX() methods instead of peeking into some attribute that
may change.
This commit is contained in:
parent
5015de91cd
commit
1a34688c06
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue