Skip to content

Commit

Permalink
Disable unfinished default test map.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Sep 9, 2010
1 parent f9445cb commit cceb440
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Game/Widgets/Delegates/CreateServerMenuDelegate.cs
Expand Up @@ -34,7 +34,7 @@ public CreateServerMenuDelegate()
cs.GetWidget("BUTTON_START").OnMouseUp = mi => {
r.OpenWindow("SERVER_LOBBY");
var map = Game.modData.AvailableMaps.Keys.FirstOrDefault();
var map = Game.modData.AvailableMaps.FirstOrDefault(m => m.Value.Selectable).Key;
settings.Server.Name = cs.GetWidget<TextFieldWidget>("GAME_TITLE").Text;
settings.Server.ListenPort = int.Parse(cs.GetWidget<TextFieldWidget>("LISTEN_PORT").Text);
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Game/Widgets/Delegates/MapChooserDelegate.cs
Expand Up @@ -74,7 +74,7 @@ public void RefreshMapList(object uidobj)
if (uid != null)
Map = Game.modData.AvailableMaps[uid];
else
Map = Game.modData.AvailableMaps.FirstOrDefault().Value;
Map = Game.modData.AvailableMaps.FirstOrDefault(m => m.Value.Selectable).Value;
}
}
}
2 changes: 1 addition & 1 deletion mods/ra/maps/boomer-test-map/map.yaml
@@ -1,4 +1,4 @@
Selectable: True
Selectable: False

MapFormat: 3

Expand Down

0 comments on commit cceb440

Please sign in to comment.