diff --git a/OpenRA.FileFormats/OpenRA.FileFormats.csproj b/OpenRA.FileFormats/OpenRA.FileFormats.csproj index 94ebb652f9..55a8bc8dbe 100644 --- a/OpenRA.FileFormats/OpenRA.FileFormats.csproj +++ b/OpenRA.FileFormats/OpenRA.FileFormats.csproj @@ -72,7 +72,6 @@ - diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index b537aa6c34..a94acfea4e 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -187,7 +187,7 @@ namespace OpenRA LobbyInfo = session; if( !world.GameHasStarted ) - world.SharedRandom = new OpenRA.Thirdparty.Random( LobbyInfo.GlobalSettings.RandomSeed ); + world.SharedRandom = new XRandom( LobbyInfo.GlobalSettings.RandomSeed ); if (orderManager.Connection.ConnectionState == ConnectionState.Connected) world.SetLocalPlayer(orderManager.Connection.LocalClientId); diff --git a/OpenRA.FileFormats/Session.cs b/OpenRA.Game/Network/Session.cs similarity index 86% rename from OpenRA.FileFormats/Session.cs rename to OpenRA.Game/Network/Session.cs index 5c7e262a2b..34b0a2da57 100644 --- a/OpenRA.FileFormats/Session.cs +++ b/OpenRA.Game/Network/Session.cs @@ -9,9 +9,9 @@ #endregion using System.Collections.Generic; -using System.Linq; +using System.Drawing; -namespace OpenRA.FileFormats +namespace OpenRA.Network { // todo: ship most of this back to the Game assembly; // it was only in FileFormats due to the original server model, @@ -31,8 +31,8 @@ namespace OpenRA.FileFormats public class Client { public int Index; - public System.Drawing.Color Color1; - public System.Drawing.Color Color2; + public Color Color1; + public Color Color2; public string Country; public int SpawnPoint; public string Name; diff --git a/OpenRA.Game/OpenRA.Game.csproj b/OpenRA.Game/OpenRA.Game.csproj index a9598ea9e2..dd3a00831a 100755 --- a/OpenRA.Game/OpenRA.Game.csproj +++ b/OpenRA.Game/OpenRA.Game.csproj @@ -234,6 +234,7 @@ + diff --git a/OpenRA.Game/Player.cs b/OpenRA.Game/Player.cs index 344500f687..cd7bb7228e 100644 --- a/OpenRA.Game/Player.cs +++ b/OpenRA.Game/Player.cs @@ -8,10 +8,11 @@ */ #endregion -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using OpenRA.FileFormats; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using OpenRA.FileFormats; +using OpenRA.Network; using OpenRA.Traits; namespace OpenRA diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index f701a6f687..ceb7ab8eb0 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -19,6 +19,7 @@ using System.Net.Sockets; using System.Threading; using OpenRA.FileFormats; using OpenRA.GameRules; +using OpenRA.Network; namespace OpenRA.Server {