Fix ingame ra <-> cnc transition.
Mod syntax change to "/mods mod[ mod...] map"
This commit is contained in:
@@ -138,6 +138,8 @@ namespace OpenRA
|
||||
Rules.LoadRules(manifest);
|
||||
Timer.Time( "load rules: {0}" );
|
||||
Game.packageChangePending = false;
|
||||
|
||||
LoadMap(manifest.ShellmapUid);
|
||||
}
|
||||
|
||||
public static void ChangeMap(string mapName)
|
||||
|
||||
@@ -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;
|
||||
}},
|
||||
|
||||
Reference in New Issue
Block a user