The server can start the game

This commit is contained in:
Regalis
2016-09-09 19:49:13 +03:00
parent 4763dac21b
commit 4fbb83e2e7
4 changed files with 235 additions and 60 deletions

View File

@@ -637,20 +637,6 @@ namespace Barotrauma
if (!(c.AIController is EnemyAIController)) continue;
c.AddDamage(CauseOfDeath.Damage, 10000.0f, null);
}
break;
case "sendrandomdata":
int messageCount = 1;
if (commands.Length > 1) int.TryParse(commands[1], out messageCount);
for (int i = 0; i < messageCount; i++)
{
if (GameMain.Server != null)
{
GameMain.Server.SendRandomData();
}
}
break;
case "netstats":
if (GameMain.Server == null) return;