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);

View File

@@ -83,6 +83,7 @@ Player:
InitialCash: 5000
ActorGroupProxy:
DeveloperMode:
HackyAI:
World:
@@ -180,7 +181,6 @@ World:
SpatialBins:
BinSize: 4
Shroud:
HackyAI:
MINP:
Mine: