mirror of https://github.com/OpenRCT2/OpenRCT2.git
Show amount of peeps still on ride in tooltip when ride is closed (resolves #2708)
This commit is contained in:
parent
2077c51e0b
commit
5ee7d1bbae
|
@ -4041,6 +4041,8 @@ STR_5733 :Use NN scaling at integer scales
|
|||
STR_5734 :{SMALLFONT}{BLACK}Rendering
|
||||
STR_5735 :Network Status
|
||||
STR_5736 :Player
|
||||
STR_5737 :Closed, {COMMA16} person still on ride
|
||||
STR_5738 :Closed, {COMMA16} people still on ride
|
||||
|
||||
#############
|
||||
# Scenarios #
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue