Changeset - r8190:61d1e611ed9b
[Not reviewed]
master
0 1 0
belugas - 16 years ago 2008-01-04 03:11:36
belugas@openttd.org
(svn r11753) -Codechange: re-indent the switch case structures, as to be more code style oriented.
Hoping it makes the whole file easier to follow/read
1 file changed with 2 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/settings_gui.cpp
Show inline comments
 
@@ -524,7 +524,6 @@ static void GameDifficultyWndProc(Window
 
		w->SetWidgetDisabledState(GDW_HIGHSCORE, _game_mode == GM_EDITOR || _networking); // highscore chart in multiplayer
 
		w->SetWidgetDisabledState(GDW_ACCEPT, _networking && !_network_server); // Save-button in multiplayer (and if client)
 
		w->LowerWidget(GDW_LVL_EASY + _opt_mod_temp.diff_level);
 

	
 
		break;
 

	
 
	case WE_PAINT: {
 
@@ -932,8 +931,7 @@ static void PatchesSelectionWndProc(Wind
 
			DrawString(30, y, (sdb->str) + disabled, TC_FROMSTRING);
 
			y += 11;
 
		}
 
		break;
 
	}
 
		} break;
 

	
 
	case WE_CLICK:
 
		switch (e->we.click.widget) {
 
@@ -1038,7 +1036,7 @@ static void PatchesSelectionWndProc(Wind
 
		SetWindowDirty(w);
 
		break;
 

	
 
	case WE_ON_EDIT_TEXT: {
 
		case WE_ON_EDIT_TEXT:
 
		if (e->we.edittext.str != NULL) {
 
			const PatchEntry *pe = &_patches_page[WP(w, def_d).data_1].entries[WP(w,def_d).data_3];
 
			const SettingDesc *sd = pe->setting;
 
@@ -1051,7 +1049,6 @@ static void PatchesSelectionWndProc(Wind
 
			SetWindowDirty(w);
 
		}
 
		break;
 
	}
 

	
 
	case WE_DESTROY:
 
		DeleteWindowById(WC_QUERY_STRING, 0);
0 comments (0 inline, 0 general)