Merge pull request #2845 from ihptru/bots

option to disable bots on server + disable bots on any dedicated server
This commit is contained in:
Matthias Mailänder
2013-03-26 14:32:29 -07:00
2 changed files with 4 additions and 0 deletions

View File

@@ -546,6 +546,8 @@ namespace OpenRA.Mods.RA.Server
static Session.Slot MakeSlotFromPlayerReference(PlayerReference pr)
{
if (!pr.Playable) return null;
if (Game.Settings.Server.LockBots || Game.Settings.Server.Dedicated)
pr.AllowBots = false;
return new Session.Slot
{
PlayerReference = pr.Name,