Fix server/client gametype out of sync

This commit is contained in:
BrentVL-1952840 2023-02-25 18:46:00 +01:00
parent 1c2896911e
commit 47c2a28b49
2 changed files with 2 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);