Use GetSpawnX() methods instead of peeking into some attribute that
may change.
This commit is contained in:
parent
d8be29928d
commit
6035e11627
2 changed files with 6 additions and 6 deletions
|
@ -266,9 +266,9 @@ info_tfgoal::Respawn(void)
|
|||
{
|
||||
solid = SOLID_TRIGGER;
|
||||
movetype = MOVETYPE_NONE;
|
||||
SetModel(m_oldModel);
|
||||
SetModel(GetSpawnModel());
|
||||
setsize(this, VEC_HULL_MIN, VEC_HULL_MAX);
|
||||
SetOrigin(m_oldOrigin);
|
||||
SetOrigin(GetSpawnOrigin());
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -420,8 +420,8 @@ i_t_g::Respawn(void)
|
|||
{
|
||||
solid = SOLID_BSPTRIGGER;
|
||||
movetype = MOVETYPE_NONE;
|
||||
SetModel(m_oldModel);
|
||||
SetOrigin(m_oldOrigin);
|
||||
SetModel(GetSpawnModel());
|
||||
SetOrigin(GetSpawnOrigin());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -115,9 +115,9 @@ item_tfgoal::Respawn(void)
|
|||
{
|
||||
solid = SOLID_TRIGGER;
|
||||
movetype = MOVETYPE_NONE;
|
||||
SetModel(m_oldModel);
|
||||
SetModel(GetSpawnModel());
|
||||
setsize(this, VEC_HULL_MIN, VEC_HULL_MAX);
|
||||
SetOrigin(m_oldOrigin);
|
||||
SetOrigin(GetSpawnOrigin());
|
||||
m_eActivator = __NULL__;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue