1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

fix get capacity string for vehicles

This commit is contained in:
Ted John
2016-07-11 22:50:55 +01:00
parent eb275604fa
commit edb4a4a822
17 changed files with 45 additions and 6 deletions

View File

@@ -903,6 +903,20 @@ extern "C"
}
}
const utf8 * object_get_capacity(const void * object)
{
const Object * baseObject = (const Object *)object;
switch (baseObject->GetObjectType()) {
case OBJECT_TYPE_RIDE:
{
auto rideObject = static_cast<const RideObject *>(baseObject);
return rideObject->GetCapacity();
}
default:
return "";
}
}
void object_draw_preview(const void * object, rct_drawpixelinfo * dpi, sint32 width, sint32 height)
{
const Object * baseObject = (const Object *)object;