Skip to content

Commit

Permalink
Apply aliases to settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterekepeter committed Nov 20, 2023
1 parent bfb7822 commit 8f5519d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions MVES/Classes/MapVote.uc
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ event PostBeginPlay()

if ( DefaultSettings != "" )
{
ExecuteSettings(DefaultSettings);
Cmd = DefaultSettings;
if ( InStr( Cmd, "<") >= 0 )
Cmd = ParseAliases( Cmd);
ExecuteSettings(Cmd);
}

bNeedToRestorePackages = false;
Expand Down Expand Up @@ -382,7 +385,8 @@ event PostBeginPlay()
}
DEFAULT_MODE:
Cmd = CurrentGame.Settings;
//Log("[MVE] Loading settings:",'MapVote');
if ( InStr( Cmd, "<") >= 0 )
Cmd = ParseAliases( Cmd);
ExecuteSettings(Cmd);
Cmd = ParseAliases(CurrentGame.ServerActors);
Expand Down Expand Up @@ -1584,15 +1588,15 @@ final function bool SetupTravelString( string mapStringWithIdx )
spk = ParseAliases( spk);
}
Nfo("-> ServerPackages: `"$spk$"`");
ConsoleCommand( "set ini:Engine.Engine.GameEngine ServerPackages "$spk);
ConsoleCommand("set ini:Engine.Engine.GameEngine ServerPackages "$spk);
}
TickRate = DefaultTickRate;
if (CustomGame[idx].TickRate != 0)
TickRate = CustomGame[idx].TickRate;
if (TickRate > 0)
{
ConsoleCommand( "set ini:Engine.Engine.NetworkDevice NetServerMaxTickRate "$CustomGame[idx].TickRate);
ConsoleCommand( "set ini:Engine.Engine.NetworkDevice LanServerMaxTickRate "$CustomGame[idx].TickRate);
ConsoleCommand("set ini:Engine.Engine.NetworkDevice NetServerMaxTickRate "$CustomGame[idx].TickRate);
ConsoleCommand("set ini:Engine.Engine.NetworkDevice LanServerMaxTickRate "$CustomGame[idx].TickRate);
Nfo("-> TickRate: `"$TickRate$"`");
}
return true; // SUCCESS!!!
Expand Down

0 comments on commit 8f5519d

Please sign in to comment.