From 87129fb9f5c2296cbaac0bc83e8619e0f7c4538c Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 26 Jun 2010 14:51:27 +0000 Subject: (svn r20019) -Codechange: Apply function code style to a few small functions. --- src/console_gui.cpp | 11 +++++++++-- src/newgrf_text.cpp | 5 ++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/console_gui.cpp b/src/console_gui.cpp index 0c187407e..6a73790be 100644 --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -140,7 +140,10 @@ static void IConsoleClearCommand() SetWindowDirty(WC_CONSOLE, 0); } -static inline void IConsoleResetHistoryPos() {_iconsole_historypos = ICON_HISTORY_SIZE - 1;} +static inline void IConsoleResetHistoryPos() +{ + _iconsole_historypos = ICON_HISTORY_SIZE - 1; +} static const char *IConsoleHistoryAdd(const char *cmd); @@ -404,7 +407,11 @@ void IConsoleSwitch() MarkWholeScreenDirty(); } -void IConsoleClose() {if (_iconsole_mode == ICONSOLE_OPENED) IConsoleSwitch();} +/** Close the in-game console. */ +void IConsoleClose() +{ + if (_iconsole_mode == ICONSOLE_OPENED) IConsoleSwitch(); +} /** * Add the entered line into the history so you can look it back diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 112a3b2cf..c22a855cf 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -614,7 +614,10 @@ void PrepareTextRefStackUsage(byte numEntries) } /** Stop using the TTDP compatible string code parsing */ -void StopTextRefStackUsage() { _newgrf_textrefstack->used = false; } +void StopTextRefStackUsage() +{ + _newgrf_textrefstack->used = false; +} void SwitchToNormalRefStack() { -- cgit v1.2.3-70-g09d2