make bot slot usage actually work

This commit is contained in:
Chris Forbes
2010-08-25 19:34:20 +12:00
parent 909152c662
commit 47eacc5b80
2 changed files with 30 additions and 1 deletions

View File

@@ -271,7 +271,7 @@ namespace OpenRA.Widgets.Delegates
else
{
if (s.Bot == null)
s.Bot = "HackyAI";
Game.IssueOrder(Order.Command("slot_bot HackyAI"));
else
Game.IssueOrder(Order.Command("slot_close " + s.Index));
}