From 929544b20f13283987b230d488acfacd5605f546 Mon Sep 17 00:00:00 2001 From: staphen Date: Sun, 19 Feb 2023 21:49:58 -0500 Subject: [PATCH] Move initialization of gbIsHellfire back to DiabloInit() --- Source/diablo.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/diablo.cpp b/Source/diablo.cpp index fad2b6983..670902958 100644 --- a/Source/diablo.cpp +++ b/Source/diablo.cpp @@ -1117,15 +1117,6 @@ void ApplicationInit() init_create_window(); was_window_init = true; - if (forceSpawn || *sgOptions.StartUp.shareware) - gbIsSpawn = true; - if (forceDiablo || *sgOptions.StartUp.gameMode == StartUpGameMode::Diablo) - gbIsHellfire = false; - if (forceHellfire) - gbIsHellfire = true; - - gbIsHellfireSaveGame = gbIsHellfire; - LanguageInitialize(); SetApplicationVersions(); @@ -1135,6 +1126,15 @@ void ApplicationInit() void DiabloInit() { + if (forceSpawn || *sgOptions.StartUp.shareware) + gbIsSpawn = true; + if (forceDiablo || *sgOptions.StartUp.gameMode == StartUpGameMode::Diablo) + gbIsHellfire = false; + if (forceHellfire) + gbIsHellfire = true; + + gbIsHellfireSaveGame = gbIsHellfire; + for (size_t i = 0; i < QUICK_MESSAGE_OPTIONS; i++) { auto &messages = sgOptions.Chat.szHotKeyMsgs[i]; if (messages.empty()) {