mirror of https://github.com/OpenTTD/OpenTTD
(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/readrelease/0.6
parent
b0ef12e0e9
commit
c59ea520a7
|
@ -524,7 +524,6 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e)
|
||||||
w->SetWidgetDisabledState(GDW_HIGHSCORE, _game_mode == GM_EDITOR || _networking); // highscore chart in multiplayer
|
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->SetWidgetDisabledState(GDW_ACCEPT, _networking && !_network_server); // Save-button in multiplayer (and if client)
|
||||||
w->LowerWidget(GDW_LVL_EASY + _opt_mod_temp.diff_level);
|
w->LowerWidget(GDW_LVL_EASY + _opt_mod_temp.diff_level);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WE_PAINT: {
|
case WE_PAINT: {
|
||||||
|
@ -932,8 +931,7 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e)
|
||||||
DrawString(30, y, (sdb->str) + disabled, TC_FROMSTRING);
|
DrawString(30, y, (sdb->str) + disabled, TC_FROMSTRING);
|
||||||
y += 11;
|
y += 11;
|
||||||
}
|
}
|
||||||
break;
|
} break;
|
||||||
}
|
|
||||||
|
|
||||||
case WE_CLICK:
|
case WE_CLICK:
|
||||||
switch (e->we.click.widget) {
|
switch (e->we.click.widget) {
|
||||||
|
@ -1038,7 +1036,7 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e)
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WE_ON_EDIT_TEXT: {
|
case WE_ON_EDIT_TEXT:
|
||||||
if (e->we.edittext.str != NULL) {
|
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 PatchEntry *pe = &_patches_page[WP(w, def_d).data_1].entries[WP(w,def_d).data_3];
|
||||||
const SettingDesc *sd = pe->setting;
|
const SettingDesc *sd = pe->setting;
|
||||||
|
@ -1051,7 +1049,6 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e)
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
case WE_DESTROY:
|
case WE_DESTROY:
|
||||||
DeleteWindowById(WC_QUERY_STRING, 0);
|
DeleteWindowById(WC_QUERY_STRING, 0);
|
||||||
|
|
Loading…
Reference in New Issue