Fix projected world coordinate calculation for Lua API.

This commit is contained in:
Paul Chote
2015-06-22 22:07:48 +01:00
parent f05b71ada2
commit 41fa77d12a
3 changed files with 53 additions and 13 deletions

View File

@@ -64,7 +64,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic
height = Math.Max(2, height);
map.Resize(width + 2, height + tileset.MaxGroundHeight + 2);
map.ResizeCordon(1, 1, width + 1, height + tileset.MaxGroundHeight + 1);
var tl = new MPos(1, 1);
var br = new MPos(width, height + tileset.MaxGroundHeight);
map.SetBounds(tl, br);
map.PlayerDefinitions = new MapPlayers(map.Rules, map.SpawnPoints.Value.Length).ToMiniYaml();
map.FixOpenAreas(modRules);