Move ChooseRandomCell from WorldUtils to Map

This commit is contained in:
Pavlos Touboulidis
2014-06-13 14:02:51 +03:00
parent 77fb188585
commit f0c672b70c
5 changed files with 11 additions and 10 deletions

View File

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