summaryrefslogtreecommitdiff
path: root/src/console_gui.cpp
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-06-12 21:33:01 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 15:25:31 +0200
commiteb6cdadc4dad9de62abbd31c410050ae150935b1 (patch)
tree9abf6cf90bec474fcf226c15d6f85dbbbed04551 /src/console_gui.cpp
parentd9c1d18f2bde32fe615fbe6ad088fbce1e2b82bf (diff)
downloadopenttd-eb6cdadc4dad9de62abbd31c410050ae150935b1.tar.xz
Codechange: replace IConsolePrintF with IConsolePrint and fmt formatting
Also make some strings more consistent with the rest of the console strings.
Diffstat (limited to 'src/console_gui.cpp')
-rw-r--r--src/console_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/console_gui.cpp b/src/console_gui.cpp
index b9062088e..a225673e8 100644
--- a/src/console_gui.cpp
+++ b/src/console_gui.cpp
@@ -287,7 +287,7 @@ struct IConsoleWindow : Window
/* We always want the ] at the left side; we always force these strings to be left
* aligned anyway. So enforce this in all cases by adding a left-to-right marker,
* otherwise it will be drawn at the wrong side with right-to-left texts. */
- IConsolePrintF(CC_COMMAND, LRM "] %s", _iconsole_cmdline.buf);
+ IConsolePrint(CC_COMMAND, LRM "] {}", _iconsole_cmdline.buf);
const char *cmd = IConsoleHistoryAdd(_iconsole_cmdline.buf);
IConsoleClearCommand();
@@ -399,10 +399,10 @@ void IConsoleGUIInit()
IConsoleLine::Reset();
memset(_iconsole_history, 0, sizeof(_iconsole_history));
- IConsolePrintF(CC_WARNING, "OpenTTD Game Console Revision 7 - %s", _openttd_revision);
- IConsolePrint(CC_WHITE, "------------------------------------");
- IConsolePrint(CC_WHITE, "use \"help\" for more information");
- IConsolePrint(CC_WHITE, "");
+ IConsolePrint(TC_LIGHT_BLUE, "OpenTTD Game Console Revision 7 - {}", _openttd_revision);
+ IConsolePrint(CC_WHITE, "------------------------------------");
+ IConsolePrint(CC_WHITE, "use \"help\" for more information");
+ IConsolePrint(CC_WHITE, "");
IConsoleClearCommand();
}