Remove template checking, doesnt work.

Consider GetGameTime() alternative?
This commit is contained in:
zaCade
2019-04-08 12:53:24 +02:00
parent 16b304238e
commit ecbf18e14f
3 changed files with 3 additions and 40 deletions
@@ -116,26 +116,6 @@ stock int Entity_GetParent(int entity)
return GetEntPropEnt(entity, Prop_Data, "m_pParent");
}
/**
* Gets the template id of an entity.
*
* @param entity Entity index.
* @return Template ID or -1
*/
stock int Entity_GetTempID(int entity)
{
char name[128];
GetEntPropString(entity, Prop_Data, "m_iName", name, sizeof(name));
int index
if ((index = FindCharInString(name, '&', true)) != -1)
{
return view_as<int>(StringToInt(name[index + 1]));
}
return -1;
}
/**
* Sets the Name of an entity.
*