fix get capacity string for vehicles

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

No files matched your search

+14
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;