Fixed ClientUserInfoChanged forward not being reset on mapchange

This commit is contained in:
Scott Ehlert 2006-04-28 20:07:53 +00:00
parent 5a2e35c1bf
commit 6000fe43d1
3 changed files with 5 additions and 4 deletions

View File

@ -166,6 +166,7 @@ void OnPluginsLoaded()
RESETD(RegisterEncoders);
RESETD(CreateInstancedBaselines);
RESETD(AllowLagCompensation);
RESETD(ClientUserInfoChanged);
RESETN(OnFreeEntPrivateData);
RESETN(GameShutdown);

View File

@ -86,13 +86,13 @@ SIMPLE_INT_HOOK_STRING(PrecacheSound);
void ClientUserInfoChanged(edict_t *e, char *infobuffer)
{
FM_ENG_HANDLE(FM_ClientInfoChanged, (Engine[FM_ClientInfoChanged].at(i), (cell)ENTINDEX(e)));
FM_ENG_HANDLE(FM_ClientUserInfoChanged, (Engine[FM_ClientUserInfoChanged].at(i), (cell)ENTINDEX(e)));
RETURN_META(mswi(lastFmRes));
}
void ClientUserInfoChanged_post(edict_t *e, char *infobuffer)
{
FM_ENG_HANDLE_POST(FM_ClientInfoChanged, (EnginePost[FM_ClientInfoChanged].at(i), (cell)ENTINDEX(e)));
FM_ENG_HANDLE_POST(FM_ClientUserInfoChanged, (EnginePost[FM_ClientUserInfoChanged].at(i), (cell)ENTINDEX(e)));
RETURN_META(mswi(lastFmRes));
}
@ -1332,7 +1332,7 @@ static cell AMX_NATIVE_CALL register_forward(AMX *amx, cell *params)
fId = MF_RegisterSPForwardByName(amx, funcname, FP_CELL, FP_CELL, FP_DONE);
NEWDLLHOOK(ShouldCollide);
break;
case FM_ClientInfoChanged:
case FM_ClientUserInfoChanged:
fId = MF_RegisterSPForwardByName(amx, funcname, FP_CELL, FP_DONE);
DLLHOOK(ClientUserInfoChanged);
break;

View File

@ -153,7 +153,7 @@ enum {
FM_OnFreeEntPrivateData,
FM_GameShutdown,
FM_ShouldCollide,
FM_ClientInfoChanged, //passes id only
FM_ClientUserInfoChanged, //passes id only
FM_LAST_DONT_USE_ME
};