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

may change.
This commit is contained in:
Marco Cawthorne 2021-09-16 18:41:51 +02:00
parent 9e056a52ae
commit 6073b55474
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 4 additions and 4 deletions

View File

@ -48,8 +48,8 @@ item_ammo::Respawn(void)
solid = SOLID_TRIGGER;
movetype = MOVETYPE_TOSS;
if (m_oldModel) {
SetModel(m_oldModel);
if (GetSpawnModel()) {
SetModel(GetSpawnModel());
}
setsize(this, [-16,-16,0], [16,16,16]);
@ -64,8 +64,8 @@ item_ammo::Respawn(void)
void
item_ammo::item_ammo(void)
{
m_oldModel = model;
SetModel(m_oldModel);
GetSpawnModel() = model;
SetModel(GetSpawnModel());
CBaseEntity::CBaseEntity();
}