Merge pull request #5832 from obrakmann/fix-old-lua-breakage

Fix breakage of the old Lua API due to recent changes
This commit is contained in:
Matthias Mailänder
2014-07-06 07:55:34 +02:00
9 changed files with 26 additions and 16 deletions

View File

@@ -461,5 +461,11 @@ namespace OpenRA.Mods.RA.Scripting
{
return Util.ExpandFootprint(cells.Values.Cast<CPos>(), allowDiagonal);
}
[LuaGlobal]
public WPos CenterOfCell(CPos position)
{
return world.Map.CenterOfCell(position);
}
}
}