From 6000fe43d10364e196e502d82ef74e45ad7c9f56 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 28 Apr 2006 20:07:53 +0000 Subject: [PATCH] Fixed ClientUserInfoChanged forward not being reset on mapchange --- dlls/fakemeta/fakemeta_amxx.cpp | 1 + dlls/fakemeta/forward.cpp | 6 +++--- dlls/fakemeta/forward.h | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dlls/fakemeta/fakemeta_amxx.cpp b/dlls/fakemeta/fakemeta_amxx.cpp index a82def60..384c5856 100755 --- a/dlls/fakemeta/fakemeta_amxx.cpp +++ b/dlls/fakemeta/fakemeta_amxx.cpp @@ -166,6 +166,7 @@ void OnPluginsLoaded() RESETD(RegisterEncoders); RESETD(CreateInstancedBaselines); RESETD(AllowLagCompensation); + RESETD(ClientUserInfoChanged); RESETN(OnFreeEntPrivateData); RESETN(GameShutdown); diff --git a/dlls/fakemeta/forward.cpp b/dlls/fakemeta/forward.cpp index 2b2b6985..8eb08498 100755 --- a/dlls/fakemeta/forward.cpp +++ b/dlls/fakemeta/forward.cpp @@ -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; diff --git a/dlls/fakemeta/forward.h b/dlls/fakemeta/forward.h index be48d8ce..2d90d60c 100755 --- a/dlls/fakemeta/forward.h +++ b/dlls/fakemeta/forward.h @@ -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 };