mirror of
https://github.com/rehlds/reunion.git
synced 2025-02-10 21:58:56 +03:00
Disable caching of g_ISteamGameServer, listen server may reassign instance after each map change
This commit is contained in:
parent
2370bdaff2
commit
38eeb46f39
@ -256,11 +256,9 @@ void SV_ConnectClient_hook(IRehldsHook_SV_ConnectClient* chain) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
client_auth_context_t ctx;
|
|
||||||
|
|
||||||
if (!g_ISteamGameServer)
|
|
||||||
g_ISteamGameServer = g_RehldsApi->GetServerData()->GetSteamGameServer();
|
g_ISteamGameServer = g_RehldsApi->GetServerData()->GetSteamGameServer();
|
||||||
|
|
||||||
|
client_auth_context_t ctx;
|
||||||
g_CurrentAuthContext = &ctx;
|
g_CurrentAuthContext = &ctx;
|
||||||
chain->callNext();
|
chain->callNext();
|
||||||
g_CurrentAuthContext = nullptr;
|
g_CurrentAuthContext = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user