mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
Fix touched armoury_entity
This commit is contained in:
parent
c3e632eacc
commit
611344ed05
@ -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;
|
||||
|
@ -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)()
|
||||
|
Loading…
Reference in New Issue
Block a user