removed useless engine hooks

replaces some div's to mul's
This commit is contained in:
jeefo 2015-06-22 21:32:29 +03:00
commit 65818243ec
8 changed files with 12 additions and 47 deletions

View file

@ -2756,38 +2756,6 @@ void pfnAlertMessage (ALERT_TYPE alertType, char *format, ...)
(*g_engfuncs.pfnAlertMessage) (alertType, buffer);
}
const char *pfnGetPlayerAuthId (edict_t *e)
{
if (IsValidBot (e))
{
if (g_isMetamod)
RETURN_META_VALUE (MRES_SUPERCEDE, "BOT");
return "BOT";
}
if (g_isMetamod)
RETURN_META_VALUE (MRES_IGNORED, 0);
return (*g_engfuncs.pfnGetPlayerAuthId) (e);
}
unsigned int pfnGetPlayerWONId (edict_t *e)
{
if (IsValidBot (e))
{
if (g_isMetamod)
RETURN_META_VALUE (MRES_SUPERCEDE, 0);
return 0;
}
if (g_isMetamod)
RETURN_META_VALUE (MRES_IGNORED, 0);
return (*g_engfuncs.pfnGetPlayerWONId) (e);
}
gamedll_funcs_t gameDLLFunc;
export int GetEntityAPI2 (gamefuncs_t *functionTable, int *interfaceVersion)
@ -2903,8 +2871,6 @@ export int GetEngineFunctions (enginefuncs_t *functionTable, int *interfaceVersi
functionTable->pfnCmd_Argc = pfnCmd_Argc;
functionTable->pfnSetClientMaxspeed = pfnSetClientMaxspeed;
functionTable->pfnAlertMessage = pfnAlertMessage;
functionTable->pfnGetPlayerAuthId = pfnGetPlayerAuthId;
functionTable->pfnGetPlayerWONId = pfnGetPlayerWONId;
return TRUE;
}