Fix water-terrain painting following 6cc00f6a82. Based on patch by niektb.

This was SVN commit r17797.
This commit is contained in:
elexis 2016-02-23 17:47:55 +00:00
parent 2b0c40d7b2
commit 8b85b72dfc
2 changed files with 6 additions and 1 deletions

View File

@ -595,7 +595,7 @@ createObjectGroups(group, 0,
);
paintTerrainBasedOnHeight(1, 2, 0, tShore);
paintTerrainBasedOnHeight(-8, 1, 2, tWater);
paintTerrainBasedOnHeight(getMapBaseHeight(), 1, 3, tWater);
setSkySet(shuffleArray(["cloudless", "cumulus", "overcast"])[0]);

View File

@ -290,6 +290,11 @@ function isCircularMap()
return !!g_MapSettings.CircularMap;
}
function getMapBaseHeight()
{
return g_MapSettings.BaseHeight || 0;
}
function createTileClass()
{
return g_Map.createTileClass();