From eb9ecea92ee3d9a9d97bf68453ddbaeae02a108f Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Tue, 26 Feb 2019 08:50:04 +0000 Subject: [PATCH] Add IsGhost to the testpaint calls --- src/openrct2/world/TileElement.cpp | 1 + test/testpaint/Compat.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/openrct2/world/TileElement.cpp b/src/openrct2/world/TileElement.cpp index c86a32c080..827cd7be24 100644 --- a/src/openrct2/world/TileElement.cpp +++ b/src/openrct2/world/TileElement.cpp @@ -53,6 +53,7 @@ bool TileElementBase::IsGhost() const { return (this->flags & TILE_ELEMENT_FLAG_GHOST) != 0; } + void TileElementBase::SetGhost(bool isGhost) { if (isGhost == true) diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index 92784a7f80..82cd9ab232 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -165,6 +165,11 @@ uint8_t TileElementBase::GetType() const return this->type & TILE_ELEMENT_TYPE_MASK; } +bool TileElementBase::IsGhost() const +{ + return (this->flags & TILE_ELEMENT_FLAG_GHOST) != 0; +} + TileElement* map_get_first_element_at(int x, int y) { if (x < 0 || y < 0 || x > 255 || y > 255)