blackbutterfly
Emperor
While developing the map scripts for Scrambled Arctic Ocean and AEP Earth, which are radial maps, I stumbled upon a bug with the Map API.
Map.GetPlotDistance() doesn't work correctly, so instead of producing nice circular ice shelves it was producing hexagonal ones.
Here's the correction/fix:
-- bugfix - remember Pythagoras?
function __GetPlotDistance(iX1, iY1, iX0, iY0)
return math.sqrt((iX1-iX0)^2 + (iY1-iY0)^2);
end
Minimal impact on Outback Tycoon scenario map (which is the template for all my map scripts).
Map.GetPlotDistance() doesn't work correctly, so instead of producing nice circular ice shelves it was producing hexagonal ones.
Here's the correction/fix:
-- bugfix - remember Pythagoras?
function __GetPlotDistance(iX1, iY1, iX0, iY0)
return math.sqrt((iX1-iX0)^2 + (iY1-iY0)^2);
end
Minimal impact on Outback Tycoon scenario map (which is the template for all my map scripts).
Last edited: