mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix building of testpaint
This commit is contained in:
parent
6ed17b4ff9
commit
9c2f545225
|
@ -145,12 +145,27 @@ rct_ride_entry* Ride::GetRideEntry() const
|
|||
return rideEntry;
|
||||
}
|
||||
|
||||
template<> bool SpriteBase::Is<SpriteBase>() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
template<> bool SpriteBase::Is<Peep>() const
|
||||
{
|
||||
return sprite_identifier == SPRITE_IDENTIFIER_PEEP;
|
||||
}
|
||||
|
||||
rct_sprite* get_sprite(size_t sprite_idx)
|
||||
{
|
||||
assert(sprite_idx < MAX_SPRITES);
|
||||
return &sprite_list[sprite_idx];
|
||||
}
|
||||
|
||||
SpriteBase* GetEntity(size_t sprite_idx)
|
||||
{
|
||||
return GetEntity<SpriteBase>(sprite_idx);
|
||||
}
|
||||
|
||||
bool TileElementBase::IsLastForTile() const
|
||||
{
|
||||
return (this->Flags & TILE_ELEMENT_FLAG_LAST_TILE) != 0;
|
||||
|
|
Loading…
Reference in New Issue