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

@ -53,6 +53,7 @@ bool TileElementBase::IsGhost() const
{ {
return (this->flags & TILE_ELEMENT_FLAG_GHOST) != 0; return (this->flags & TILE_ELEMENT_FLAG_GHOST) != 0;
} }
void TileElementBase::SetGhost(bool isGhost) void TileElementBase::SetGhost(bool isGhost)
{ {
if (isGhost == true) if (isGhost == true)

View File

@ -165,6 +165,11 @@ uint8_t TileElementBase::GetType() const
return this->type & TILE_ELEMENT_TYPE_MASK; 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) TileElement* map_get_first_element_at(int x, int y)
{ {
if (x < 0 || y < 0 || x > 255 || y > 255) if (x < 0 || y < 0 || x > 255 || y > 255)