1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Add IsGhost to the testpaint calls

This commit is contained in:
duncanspumpkin
2019-02-26 08:50:04 +00:00
parent ab058fe659
commit eb9ecea92e
2 changed files with 6 additions and 0 deletions

View File

@@ -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)