1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 01:35:06 +01:00

Remove gMapTooltip format args global (#12971)

Fix mistake
This commit is contained in:
Duncan
2020-09-29 01:45:28 +01:00
committed by GitHub
parent a0341a7aeb
commit 3c8adb1fc1
12 changed files with 85 additions and 29 deletions

View File

@@ -6224,13 +6224,16 @@ void Vehicle::SetMapToolbar() const
if (curRide->vehicles[vehicleIndex] == vehicle->sprite_index)
break;
auto ft = Formatter::MapTooltip();
auto ft = Formatter();
ft.Add<rct_string_id>(STR_RIDE_MAP_TIP);
ft.Add<rct_string_id>(STR_MAP_TOOLTIP_STRINGID_STRINGID);
curRide->FormatNameTo(ft);
ft.Add<rct_string_id>(RideComponentNames[RideTypeDescriptors[curRide->type].NameConvention.vehicle].capitalised);
ft.Add<uint16_t>(vehicleIndex + 1);
curRide->FormatStatusTo(ft);
auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP);
intent.putExtra(INTENT_EXTRA_FORMATTER, &ft);
context_broadcast_intent(&intent);
}
}