Fix touched armoury_entity

This commit is contained in:
s1lentq 2016-08-03 14:35:36 +07:00
parent c3e632eacc
commit 611344ed05
2 changed files with 4 additions and 7 deletions

View File

@ -1053,17 +1053,14 @@ int CBaseEntity::__MAKE_VHOOK(DamageDecal)(int bitsDamageType)
// will keep a pointer to it after this call.
CBaseEntity *CBaseEntity::Create(char *szName, const Vector &vecOrigin, const Vector &vecAngles, edict_t *pentOwner)
{
edict_t *pent;
CBaseEntity *pEntity;
pent = CREATE_NAMED_ENTITY(MAKE_STRING(szName));
edict_t *pent = CREATE_NAMED_ENTITY(MAKE_STRING(szName));
if (FNullEnt(pent))
{
ALERT(at_console, "NULL Ent in Create!\n");
return NULL;
}
pEntity = Instance(pent);
CBaseEntity *pEntity = Instance(pent);
pEntity->pev->owner = pentOwner;
pEntity->pev->origin = vecOrigin;

View File

@ -2201,6 +2201,8 @@ void CArmoury::__MAKE_VHOOK(Restart)()
if (m_iCount < 1)
m_iCount = 1;
Draw();
#ifdef REGAMEDLL_ADD
// Restored origin from the cache
UTIL_SetSize(pev, Vector(-16, -16, 0), Vector(16, 16, 16));
@ -2208,8 +2210,6 @@ void CArmoury::__MAKE_VHOOK(Restart)()
DROP_TO_FLOOR(edict());
#endif
Draw();
}
void CArmoury::__MAKE_VHOOK(Precache)()