Changeset - r9693:d4033b0d7a90
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-07-23 15:01:50
smatz@openttd.org
(svn r13800) -Codechange: minor comment style fixes in misc_gui.cpp
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/misc_gui.cpp
Show inline comments
 
@@ -421,13 +421,13 @@ public:
 
		SwitchToNormalRefStack();
 

	
 
		int h = 15 + h1 + h2;
 
		height = max<int>(height, h);
 

	
 
		if (msg1 == INVALID_STRING_ID) {
 
			// only 1 line will be printed
 
			/* only 1 line will be printed */
 
			y[1] = (height - 15) / 2 + 15 - 5;
 
		} else {
 
			int over = (height - h) / 4;
 

	
 
			y[1] = 15 + h2 / 2 + 1 - 5 + over;
 
			y[0] = height - 3 - h1 / 2 - 5 - over;
 
@@ -1269,13 +1269,14 @@ static const WindowDesc _query_desc = {
 
 * The window is aligned to the centre of its parent.
 
 * NOTE: You cannot use BindCString as parameter for this window!
 
 * @param caption string shown as window caption
 
 * @param message string that will be shown for the window
 
 * @param parent pointer to parent window, if this pointer is NULL the parent becomes
 
 * the main window WC_MAIN_WINDOW
 
 * @param callback callback function pointer to set in the window descriptor*/
 
 * @param callback callback function pointer to set in the window descriptor
 
 */
 
void ShowQuery(StringID caption, StringID message, Window *parent, QueryCallbackProc *callback)
 
{
 
	new QueryWindow(&_query_desc, caption, message, parent, callback);
 
}
 

	
 

	
 
@@ -1379,13 +1380,13 @@ extern void StartupEngines();
 
struct SaveLoadWindow : public QueryStringBaseWindow {
 
	FiosItem o_dir;
 

	
 
	void GenerateFileName()
 
	{
 
		/* Check if we are not a spectator who wants to generate a name..
 
				Let's use the name of player #0 for now. */
 
		 * Let's use the name of player #0 for now. */
 
		const Player *p = GetPlayer(IsValidPlayerID(_local_player) ? _local_player : PLAYER_FIRST);
 

	
 
		SetDParam(0, p->index);
 
		SetDParam(1, _date);
 
		GetString(this->edit_str_buf, STR_4004, lastof(this->edit_str_buf));
 
		SanitizeFilename(this->edit_str_buf);
0 comments (0 inline, 0 general)