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

may change.
This commit is contained in:
Marco Cawthorne 2021-09-16 18:40:56 +02:00
parent ae5d4d7ca7
commit c7f99fc00a
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ item_healthkit::Respawn(void)
{
SetSolid(SOLID_TRIGGER);
SetMovetype(MOVETYPE_TOSS);
SetOrigin(m_oldOrigin);
SetModel(m_oldModel);
SetOrigin(GetSpawnOrigin());
SetModel(GetSpawnModel());
SetSize([-16,-16,0],[16,16,16]);
//botinfo = BOTINFO_HEALTH;