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);
|
Rules.LoadRules(manifest);
|
||||||
Timer.Time( "load rules: {0}" );
|
Timer.Time( "load rules: {0}" );
|
||||||
Game.packageChangePending = false;
|
Game.packageChangePending = false;
|
||||||
|
|
||||||
|
LoadMap(manifest.ShellmapUid);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ChangeMap(string mapName)
|
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" );
|
SendChatTo( conn, "You can't change mods after the game has started" );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
var args = s.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||||
lobbyInfo.GlobalSettings.Mods = s.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
|
lobbyInfo.GlobalSettings.Mods = args.GetRange(0,args.Count - 1).ToArray();
|
||||||
|
lobbyInfo.GlobalSettings.Map = args.Last();
|
||||||
SyncLobbyInfo();
|
SyncLobbyInfo();
|
||||||
return true;
|
return true;
|
||||||
}},
|
}},
|
||||||
|
|||||||
Reference in New Issue
Block a user