Fix server/client gametype out of sync
This commit is contained in:
parent
1c2896911e
commit
47c2a28b49
@ -38,8 +38,8 @@ namespace client_patches
|
||||
|
||||
void preload_map_stub(int localClientNum, const char* mapname, const char* gametype)
|
||||
{
|
||||
game::Com_GametypeSettings_SetGametype(gametype, false, false);
|
||||
stop_zombies_intro_if_needed();
|
||||
|
||||
preload_map_hook.invoke(localClientNum, mapname, gametype);
|
||||
}
|
||||
|
||||
|
@ -173,8 +173,7 @@ namespace party
|
||||
{
|
||||
if (is_connecting_to_dedi)
|
||||
{
|
||||
game::Com_SessionMode_SetGameMode(game::MODE_GAME_DEFAULT);
|
||||
game::Com_GametypeSettings_SetGametype(gametype.data(), false, false);
|
||||
game::Com_SessionMode_SetGameMode(game::MODE_GAME_MATCHMAKING_PLAYLIST);
|
||||
}
|
||||
|
||||
//connect_to_session(target, hostname, xuid, mode);
|
||||
|
Loading…
Reference in New Issue
Block a user