From 679f4d7d50bacfc7c627905fb8638470f5eff089 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 9 Apr 2021 23:10:26 +0200 Subject: [PATCH] "Fix" Testpaint --- test/testpaint/Compat.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index 04170de65c..554177b0a7 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -41,6 +41,7 @@ uint8_t gClipHeight = 255; CoordsXY gClipSelectionA = { 0, 0 }; CoordsXY gClipSelectionB = { MAXIMUM_TILE_START_XY, MAXIMUM_TILE_START_XY }; uint8_t gCurrentRotation; +uint32_t gCurrentTicks; // clang-format off constexpr const std::array CoordsDirectionDelta = { @@ -879,6 +880,11 @@ void TileElementBase::SetOwner(uint8_t newOwner) owner |= (newOwner & OWNER_MASK); } +bool TileElementBase::IsInvisible() const +{ + return (this->Flags & TILE_ELEMENT_FLAG_INVISIBLE) != 0; +} + namespace OpenRCT2 { IContext* GetContext()