Forgot to update SVN with TS3.0 and RegisterHamFromEntity changes

This commit is contained in:
Steve Dudenhoeffer
2007-07-19 18:43:27 +00:00
parent 4b02ffa920
commit 2cbf7fca08
12 changed files with 475 additions and 203 deletions

View File

@@ -624,3 +624,20 @@ cell Call_Float_Void(AMX *amx, cell *params)
return 1;
}
cell Call_Void_Float_Int(AMX* amx, cell* params)
{
SETUP(2);
#ifdef _WIN32
reinterpret_cast<void (__fastcall *)(void*, int, float, char)>(__func)(pv, 0, amx_ctof2(params[3]), static_cast<char>(params[4]));
#elif defined __linux__
reinterpret_cast<void (*)(void*, float, char)>(__func)(pv, amx_ctof2(params[3]), static_cast<char>(params[4]));
#endif
return 1;
}
cell Call_Deprecated(AMX *amx, cell *params)
{
MF_LogError(amx, AMX_ERR_NATIVE, "Ham function is deprecated.");
return 0;
}