1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

fix ride type sorting and add water preview

This commit is contained in:
Ted John
2016-07-02 10:59:50 +01:00
parent 72f7f0f329
commit 13a560fb1d
6 changed files with 62 additions and 17 deletions

View File

@@ -59,6 +59,15 @@ void WaterObject::Unload()
language_free_object_string(_legacyType.string_idx);
}
void WaterObject::DrawPreview(rct_drawpixelinfo * dpi) const
{
// Write (no image)
int x = dpi->width / 2;
int y = dpi->height / 2;
gfx_draw_string_centred(dpi, 3326, x, y, 0, nullptr);
}
const utf8 * WaterObject::GetName() const
{
const utf8 * name = GetStringTable()->GetString(OBJ_STRING_ID_NAME);