Skip to content

Commit

Permalink
Fix configuration reload
Browse files Browse the repository at this point in the history
  • Loading branch information
peterekepeter committed Nov 30, 2024
1 parent d7bd443 commit e6bcc19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 2 additions & 6 deletions MVES/Classes/MV_MapList.uc
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,11 @@ function Configure()
//Else add to list and find rules that use it
function GlobalLoad(bool bFullscan)
{
local string CurMap, ClearMap, NewMaps;
local int i, j, k;
local string CurMap;
local int i;
local MV_MapFilter MapFilter;
local MV_Sort sorter;

Mutator.CleanRules();
Mutator.CountFilters();
if ( Mutator.ServerCodeName == '' )
Mutator.SetPropertyText("ServerCodeName",string(rand(MaxInt))$string(rand(MaxInt)) );

MapFilter = new class'MV_MapFilter';
MapFilter.bEnableMapTags = Mutator.bEnableMapTags;
Expand Down
7 changes: 6 additions & 1 deletion MVES/Classes/MapVote.uc
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ function GenerateMapList(bool bFullscan)

if ( bReloadConfigDuringReload )
{
Log("[MVE] Reload config result: "@ConsoleCommand("RELOADCFG "$Self));
Log("[MVE] Reload config result: "@ConsoleCommand("RELOADCFG"));
}

if ( MapList == None )
Expand All @@ -797,6 +797,11 @@ function GenerateMapList(bool bFullscan)
MapList.Configure();
}

CleanRules();
CountFilters();
if ( ServerCodeName == '' )
SetPropertyText("ServerCodeName", string(rand(MaxInt))$string(rand(MaxInt)));

MapList.GlobalLoad(bFullscan);
}

Expand Down

0 comments on commit e6bcc19

Please sign in to comment.