mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #11275: Crashes that kill only 1 peep create grammatically incorrect messages (#11278) Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
This commit is contained in:
parent
4a81219521
commit
163119ea3b
|
@ -3677,6 +3677,7 @@ STR_6360 :{SMALLFONT}{BLACK}{COMMA32}
|
|||
STR_6361 :Enable lighting effects on rides (experimental)
|
||||
STR_6362 :{SMALLFONT}{BLACK}If enabled, vehicles for tracked rides will be lit up at night.
|
||||
STR_6363 :Copied text to clipboard
|
||||
STR_6364 :{RED}{COMMA16} person has died in an accident on {STRINGID}
|
||||
STR_6464 :Ride casualties
|
||||
STR_6465 :Stuck or stalled vehicles
|
||||
|
||||
|
|
|
@ -3911,6 +3911,8 @@ enum
|
|||
|
||||
STR_COPY_INPUT_TO_CLIPBOARD = 6363,
|
||||
|
||||
STR_X_PERSON_DIED_ON_X = 6364,
|
||||
|
||||
STR_NOTIFICATION_RIDE_CASUALTIES = 6464,
|
||||
STR_NOTIFICATION_RIDE_VEHICLE_STALLED = 6465,
|
||||
|
||||
|
|
|
@ -5209,6 +5209,9 @@ static void vehicle_kill_all_passengers(Vehicle* vehicle)
|
|||
|
||||
if (numFatalities != 0)
|
||||
{
|
||||
ride->FormatNameTo(gCommonFormatArgs + 2);
|
||||
news_item_add_to_queue(
|
||||
NEWS_ITEM_RIDE, numFatalities == 1 ? STR_X_PERSON_DIED_ON_X : STR_X_PEOPLE_DIED_ON_X, vehicle->ride);
|
||||
if (gConfigNotifications.ride_casualties)
|
||||
{
|
||||
ride->FormatNameTo(gCommonFormatArgs + 2);
|
||||
|
|
Loading…
Reference in New Issue