Move ChooseRandomEdgeCell from WorldUtils to Map

This commit is contained in:
Pavlos Touboulidis
2014-06-13 14:31:01 +03:00
parent 060d5326ed
commit 86febed0ce
7 changed files with 19 additions and 21 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Mods.RA
{
base.Activate(self, order, manager);
var enterCell = self.World.ChooseRandomEdgeCell();
var enterCell = self.World.Map.ChooseRandomEdgeCell(self.World.SharedRandom);
var altitude = self.World.Map.Rules.Actors["u2"].Traits.Get<PlaneInfo>().CruiseAltitude;
var plane = self.World.CreateActor("u2", new TypeDictionary