summaryrefslogtreecommitdiff
path: root/src/console_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-06-26 14:51:27 +0000
committeralberth <alberth@openttd.org>2010-06-26 14:51:27 +0000
commit87129fb9f5c2296cbaac0bc83e8619e0f7c4538c (patch)
tree3312d7f8315cbecea710cfa9a223131feee56a9d /src/console_gui.cpp
parent647bbbe923423f834e7ffde139f30e0e5a8e7ddf (diff)
downloadopenttd-87129fb9f5c2296cbaac0bc83e8619e0f7c4538c.tar.xz
(svn r20019) -Codechange: Apply function code style to a few small functions.
Diffstat (limited to 'src/console_gui.cpp')
-rw-r--r--src/console_gui.cpp11
1 files changed, 9 insertions, 2 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