From abdf6e695a869ae9d85493ffb493a85275d60e73 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 31 Aug 2019 10:01:28 +0200 Subject: [PATCH] Fix testpaint --- test/testpaint/Compat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index a7f2c3c4e2..a3b3f01897 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -421,12 +421,12 @@ uint8_t TileElementBase::GetDirectionWithOffset(uint8_t offset) const uint8_t SurfaceElement::GetSlope() const { - return (slope & TILE_ELEMENT_SURFACE_SLOPE_MASK); + return Slope; } uint32_t SurfaceElement::GetWaterHeight() const { - return terrain & TILE_ELEMENT_SURFACE_WATER_HEIGHT_MASK; + return WaterHeight; } bool TrackElement::IsHighlighted() const