Changeset - r15366:981e1d95560b
[Not reviewed]
master
0 2 0
alberth - 14 years ago 2010-06-26 14:51:27
alberth@openttd.org
(svn r20019) -Codechange: Apply function code style to a few small functions.
2 files changed with 13 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/console_gui.cpp
Show inline comments
 
@@ -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
src/newgrf_text.cpp
Show inline comments
 
@@ -614,7 +614,10 @@ void PrepareTextRefStackUsage(byte numEn
 
}
 

	
 
/** Stop using the TTDP compatible string code parsing */
 
void StopTextRefStackUsage() { _newgrf_textrefstack->used = false; }
 
void StopTextRefStackUsage()
 
{
 
	_newgrf_textrefstack->used = false;
 
}
 

	
 
void SwitchToNormalRefStack()
 
{
0 comments (0 inline, 0 general)