mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 15:23:01 +01:00
Show amount of peeps still on ride in tooltip when ride is closed (resolves #2708)
This commit is contained in:
@@ -4041,6 +4041,8 @@ STR_5733 :Use NN scaling at integer scales
|
|||||||
STR_5734 :{SMALLFONT}{BLACK}Rendering
|
STR_5734 :{SMALLFONT}{BLACK}Rendering
|
||||||
STR_5735 :Network Status
|
STR_5735 :Network Status
|
||||||
STR_5736 :Player
|
STR_5736 :Player
|
||||||
|
STR_5737 :Closed, {COMMA16} person still on ride
|
||||||
|
STR_5738 :Closed, {COMMA16} people still on ride
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# Scenarios #
|
# Scenarios #
|
||||||
|
|||||||
@@ -2333,6 +2333,9 @@ enum {
|
|||||||
|
|
||||||
STR_OPTIONS_RENDERING_TIP = 5734,
|
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
|
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
||||||
STR_COUNT = 32768
|
STR_COUNT = 32768
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -710,6 +710,17 @@ void ride_get_status(int rideIndex, int *formatSecondary, int *argument)
|
|||||||
}
|
}
|
||||||
if (ride->status == RIDE_STATUS_CLOSED) {
|
if (ride->status == RIDE_STATUS_CLOSED) {
|
||||||
*formatSecondary = STR_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;
|
return;
|
||||||
}
|
}
|
||||||
if (ride->status == RIDE_STATUS_TESTING) {
|
if (ride->status == RIDE_STATUS_TESTING) {
|
||||||
|
|||||||
Reference in New Issue
Block a user