remove addpkg crap from server, since we don't use it.

This commit is contained in:
Chris Forbes
2010-07-13 19:59:06 +12:00
committed by Paul Chote
parent 3e0f850309
commit 65d2a5bb3c
2 changed files with 0 additions and 21 deletions

View File

@@ -31,7 +31,6 @@ namespace OpenRA.FileFormats
public enum ClientState public enum ClientState
{ {
NotReady, NotReady,
Downloading,
Ready Ready
} }
@@ -49,7 +48,6 @@ namespace OpenRA.FileFormats
public class Global public class Global
{ {
public string Map; public string Map;
public string[] Packages = {}; // filename:sha1 pairs.
public string[] Mods = { "ra" }; // mod names public string[] Mods = { "ra" }; // mod names
public int OrderLatency = 3; public int OrderLatency = 3;
public int RandomSeed = 0; public int RandomSeed = 0;

View File

@@ -359,25 +359,6 @@ namespace OpenRA.Server
SyncLobbyInfo(); SyncLobbyInfo();
return true; 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", { "mods",
s => s =>
{ {