1
0
Fork 0

(svn r20019) -Codechange: Apply function code style to a few small functions.

release/1.1
alberth 2010-06-26 14:51:27 +00:00
parent 647bbbe923
commit 87129fb9f5
2 changed files with 13 additions and 3 deletions

View File

@ -140,7 +140,10 @@ static void IConsoleClearCommand()
SetWindowDirty(WC_CONSOLE, 0); 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); static const char *IConsoleHistoryAdd(const char *cmd);
@ -404,7 +407,11 @@ void IConsoleSwitch()
MarkWholeScreenDirty(); 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 * Add the entered line into the history so you can look it back

View File

@ -614,7 +614,10 @@ void PrepareTextRefStackUsage(byte numEntries)
} }
/** Stop using the TTDP compatible string code parsing */ /** Stop using the TTDP compatible string code parsing */
void StopTextRefStackUsage() { _newgrf_textrefstack->used = false; } void StopTextRefStackUsage()
{
_newgrf_textrefstack->used = false;
}
void SwitchToNormalRefStack() void SwitchToNormalRefStack()
{ {