#181, #286 fixed -- sharedrandom seed from server is now used.

This commit is contained in:
Chris Forbes
2010-10-13 21:00:27 +13:00
parent 247a8c9717
commit 7cfcd94e23

View File

@@ -32,7 +32,7 @@ namespace OpenRA
internal readonly OrderManager orderManager;
public Session LobbyInfo { get { return orderManager.LobbyInfo; } }
public XRandom SharedRandom = new XRandom(0);
public XRandom SharedRandom;
public readonly Dictionary<int, Player> players = new Dictionary<int, Player>();
@@ -95,6 +95,8 @@ namespace OpenRA
TileSet = Rules.TileSets[Map.Tileset];
TileSet.LoadTiles();
SharedRandom = new XRandom(orderManager.LobbyInfo.GlobalSettings.RandomSeed);
WorldActor = CreateActor( "World", new TypeDictionary() );
Queries = new AllQueries(this);