Fix ready checkbox in the lobby being unusable after installing a map

This commit is contained in:
Oliver Brakmann
2016-04-11 22:25:18 +02:00
parent f911a80b04
commit b25eb81a42
4 changed files with 13 additions and 5 deletions

View File

@@ -781,7 +781,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
new Task(() =>
{
// Force map rules to be loaded on this background thread
var unused = map.Rules;
map.PreloadRules();
}).Start();
}
@@ -799,7 +799,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
new Task(() =>
{
// Force map rules to be loaded on this background thread
var unused = currentMap.Rules;
currentMap.PreloadRules();
Game.RunAfterTick(() =>
{
// Map may have changed in the meantime