server picks random seed for world.SharedRandom

This commit is contained in:
Chris Forbes
2010-03-19 20:52:03 +13:00
parent 4dac5c0755
commit 47822a9612
3 changed files with 8 additions and 0 deletions

View File

@@ -234,6 +234,9 @@ namespace OpenRA
LobbyInfo = session;
if (!IsStarted)
world.SharedRandom = new OpenRA.Thirdparty.Random(LobbyInfo.GlobalSettings.RandomSeed);
if (Game.orderManager.Connection.ConnectionState == ConnectionState.Connected)
world.SetLocalPlayer(Game.orderManager.Connection.LocalClientId);