Fix ingame ra <-> cnc transition.

Mod syntax change to "/mods mod[ mod...] map"
This commit is contained in:
Paul Chote
2010-04-09 19:08:54 +12:00
parent a683bddfea
commit 5c978df9a4
2 changed files with 5 additions and 2 deletions

View File

@@ -467,8 +467,9 @@ namespace OpenRA.Server
SendChatTo( conn, "You can't change mods after the game has started" );
return true;
}
lobbyInfo.GlobalSettings.Mods = s.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
var args = s.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList();
lobbyInfo.GlobalSettings.Mods = args.GetRange(0,args.Count - 1).ToArray();
lobbyInfo.GlobalSettings.Map = args.Last();
SyncLobbyInfo();
return true;
}},