From cace0ece8c0340cc68d66f64d307303d3e33f9f2 Mon Sep 17 00:00:00 2001 From: BrentVL-1952840 <70229620+Brentdevent@users.noreply.github.com> Date: Sat, 18 Mar 2023 18:44:44 +0100 Subject: [PATCH] Also skip DOA/Campaign intro --- src/client/component/client_patches.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/component/client_patches.cpp b/src/client/component/client_patches.cpp index 54c4318a..10393f01 100644 --- a/src/client/component/client_patches.cpp +++ b/src/client/component/client_patches.cpp @@ -14,9 +14,10 @@ namespace client_patches { utils::hook::detour preload_map_hook; - void stop_zombies_intro_if_needed() + void stop_intro_if_needed() { - if (game::Com_SessionMode_GetMode() != game::MODE_ZOMBIES) + if (game::Com_SessionMode_GetMode() != game::MODE_ZOMBIES && + game::Com_SessionMode_GetMode() != game::MODE_CAMPAIGN) { return; } @@ -39,7 +40,7 @@ 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(); + stop_intro_if_needed(); preload_map_hook.invoke(localClientNum, mapname, gametype); }