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

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.RA.Scripting
[Desc("Returns a random cell on the visible border of the map.")]
public CPos RandomEdgeCell()
{
return context.World.ChooseRandomEdgeCell();
return context.World.Map.ChooseRandomEdgeCell(context.World.SharedRandom);
}
[Desc("Returns true if there is only one human player.")]

View File

@@ -345,7 +345,7 @@ namespace OpenRA.Mods.RA.Scripting
[LuaGlobal]
public CPos GetRandomEdgeCell()
{
return world.ChooseRandomEdgeCell();
return world.Map.ChooseRandomEdgeCell(world.SharedRandom);
}
[LuaGlobal]