fix parsing options

This commit is contained in:
GenZmeY 2023-05-20 23:10:40 +03:00
parent 81beb8052d
commit c471a854e0

View File

@ -83,11 +83,13 @@ public event PostBeginPlay()
private function PreInit() private function PreInit()
{ {
local String URL;
local String Options; local String Options;
`Log_Trace(); `Log_Trace();
Options = WorldInfo.GetLocalURL(); URL = WorldInfo.GetLocalURL();
Options = Mid(URL, InStr(URL, "?"));
//Parse options entered via the launch command. //Parse options entered via the launch command.
//We further restrict StartWave later when we know the maximum wave number for the selected game length. //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); Dosh = Max(Dosh, 0);
//DEBUG //DEBUG
`Log_Debug("LogLevel:" @ LogLevel);
`Log_Debug("StartWave:" @ StartWave); `Log_Debug("StartWave:" @ StartWave);
`Log_Debug("InitialTraderTime:" @ InitialTraderTime); `Log_Debug("InitialTraderTime:" @ InitialTraderTime);
`Log_Debug("TraderTime:" @ TraderTime); `Log_Debug("TraderTime:" @ TraderTime);