1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 08:14:38 +01:00

Migrate many set_format_arg calls to Formatter (#11744)

This commit is contained in:
Michael Steenbeek
2020-05-14 02:29:39 +02:00
committed by GitHub
parent f0bd05cf6d
commit 620fb5e5c4
23 changed files with 122 additions and 81 deletions

View File

@@ -144,7 +144,8 @@ void window_tooltip_open(rct_window* widgetWindow, rct_widgetindex widgetIndex,
if (widget->flags & WIDGET_FLAGS::TOOLTIP_IS_STRING)
{
stringId = STR_STRING_TOOLTIP;
set_format_arg(0, const char*, widget->sztooltip);
auto ft = Formatter::Common();
ft.Add<const char*>(widget->sztooltip);
}
if (stringId == STR_NONE)