From c471a854e038712d607a3b8f30c24fb90231e3e3 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sat, 20 May 2023 23:10:40 +0300 Subject: [PATCH] fix parsing options --- StartWave/Classes/StartWave.uc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/StartWave/Classes/StartWave.uc b/StartWave/Classes/StartWave.uc index f049fa2..11db43d 100644 --- a/StartWave/Classes/StartWave.uc +++ b/StartWave/Classes/StartWave.uc @@ -83,11 +83,13 @@ public event PostBeginPlay() private function PreInit() { + local String URL; local String Options; `Log_Trace(); - Options = WorldInfo.GetLocalURL(); + URL = WorldInfo.GetLocalURL(); + Options = Mid(URL, InStr(URL, "?")); //Parse options entered via the launch command. //We further restrict StartWave later when we know the maximum wave number for the selected game length. @@ -106,6 +108,7 @@ private function PreInit() Dosh = Max(Dosh, 0); //DEBUG + `Log_Debug("LogLevel:" @ LogLevel); `Log_Debug("StartWave:" @ StartWave); `Log_Debug("InitialTraderTime:" @ InitialTraderTime); `Log_Debug("TraderTime:" @ TraderTime);