summaryrefslogtreecommitdiff
path: root/src/heightmap.cpp
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-30 11:13:12 +0100
committerErich Eckner <git@eckner.net>2018-11-16 19:11:46 +0100
commit5430113f4a842e519d2661a490022dcdf86f5247 (patch)
tree9368bef97133cea28eae5fc2161a4fdfd61dae27 /src/heightmap.cpp
parent278a705bbbd378a4c05a795b42028ba440a8bd49 (diff)
downloadopenttd-5430113f4a842e519d2661a490022dcdf86f5247.tar.xz
underground patch applied
Diffstat (limited to 'src/heightmap.cpp')
-rw-r--r--src/heightmap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/heightmap.cpp b/src/heightmap.cpp
index 17bdbbf61..6521cee6f 100644
--- a/src/heightmap.cpp
+++ b/src/heightmap.cpp
@@ -16,6 +16,7 @@
#include "error.h"
#include "saveload/saveload.h"
#include "bmp.h"
+#include "layer_func.h"
#include "gfx_func.h"
#include "fios.h"
#include "fileio_func.h"
@@ -397,6 +398,9 @@ void FixSlopes()
width = MapSizeX();
height = MapSizeY();
+ /* Layers height correct */
+ FixUndergroundHeights();
+
/* Top and left edge */
for (row = 0; (uint)row < height; row++) {
for (col = 0; (uint)col < width; col++) {