mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed ClientUserInfoChanged forward not being reset on mapchange
This commit is contained in:
parent
5a2e35c1bf
commit
6000fe43d1
@ -166,6 +166,7 @@ void OnPluginsLoaded()
|
||||
RESETD(RegisterEncoders);
|
||||
RESETD(CreateInstancedBaselines);
|
||||
RESETD(AllowLagCompensation);
|
||||
RESETD(ClientUserInfoChanged);
|
||||
|
||||
RESETN(OnFreeEntPrivateData);
|
||||
RESETN(GameShutdown);
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user