From 65d2a5bb3c8cdc73d75ea86ad2f76f991aa334ee Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 13 Jul 2010 19:59:06 +1200 Subject: [PATCH] remove addpkg crap from server, since we don't use it. --- OpenRA.FileFormats/Session.cs | 2 -- OpenRA.Game/Server/Server.cs | 19 ------------------- 2 files changed, 21 deletions(-) diff --git a/OpenRA.FileFormats/Session.cs b/OpenRA.FileFormats/Session.cs index c07eaf3dd5..39c224f0a7 100644 --- a/OpenRA.FileFormats/Session.cs +++ b/OpenRA.FileFormats/Session.cs @@ -31,7 +31,6 @@ namespace OpenRA.FileFormats public enum ClientState { NotReady, - Downloading, Ready } @@ -49,7 +48,6 @@ namespace OpenRA.FileFormats public class Global { public string Map; - public string[] Packages = {}; // filename:sha1 pairs. public string[] Mods = { "ra" }; // mod names public int OrderLatency = 3; public int RandomSeed = 0; diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index cd7fe3d4e4..91157e1480 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -359,25 +359,6 @@ namespace OpenRA.Server SyncLobbyInfo(); return true; }}, - { "addpkg", - s => - { - Console.WriteLine("** Added package: `{0}`", s); - try - { - lobbyInfo.GlobalSettings.Packages = - lobbyInfo.GlobalSettings.Packages.Concat( new string[] { - MakePackageString(s)}).ToArray(); - SyncLobbyInfo(); - return true; - } - catch - { - Console.WriteLine("Adding the package failed."); - SendChatTo( conn, "Adding the package failed." ); - return true; - } - }}, { "mods", s => {