move HackyAI bot from world to player context

This commit is contained in:
Chris Forbes
2010-08-25 19:25:19 +12:00
parent 0f9221dc5a
commit 909152c662
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA
var player = new Player(w, w.Map.Players[slot.MapPlayer], playerIndex++);
w.AddPlayer(player);
/* todo: init its bot -- but only on the host! */
/* todo: only activate the bot option that's selected! */
if (Game.IsHost)
foreach (var bot in player.PlayerActor.TraitsImplementing<IBot>())
bot.Activate(player);