mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Show amount of peeps still on ride in tooltip when ride is closed (resolves #2708)
This commit is contained in:
@@ -2333,6 +2333,9 @@ enum {
|
||||
|
||||
STR_OPTIONS_RENDERING_TIP = 5734,
|
||||
|
||||
STR_CLOSED_WITH_PERSON = 5737,
|
||||
STR_CLOSED_WITH_PEOPLE = 5738,
|
||||
|
||||
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
||||
STR_COUNT = 32768
|
||||
};
|
||||
|
||||
@@ -710,6 +710,17 @@ void ride_get_status(int rideIndex, int *formatSecondary, int *argument)
|
||||
}
|
||||
if (ride->status == RIDE_STATUS_CLOSED) {
|
||||
*formatSecondary = STR_CLOSED;
|
||||
|
||||
if (!ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_IS_SHOP)) {
|
||||
*argument = ride->num_riders;
|
||||
|
||||
if (*argument == 1) {
|
||||
*formatSecondary = STR_CLOSED_WITH_PERSON;
|
||||
} else if (*argument > 1) {
|
||||
*formatSecondary = STR_CLOSED_WITH_PEOPLE;
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
if (ride->status == RIDE_STATUS_TESTING) {
|
||||
|
||||
Reference in New Issue
Block a user