diff options
author | rubidium <rubidium@openttd.org> | 2010-08-01 18:53:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-01 18:53:30 +0000 |
commit | e356cb94050797cccbf05b3a411105528da8ee90 (patch) | |
tree | 3d98354dc5983a03e685f116b1b5c5b73607de0f /src/cheat_gui.cpp | |
parent | 605f6d0ed3c81a77d533f3db40ed50350d57536c (diff) | |
download | openttd-e356cb94050797cccbf05b3a411105528da8ee90.tar.xz |
(svn r20281) -Codechange: unify case scope closure + break coding style
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r-- | src/cheat_gui.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index bfe57759c..94b9e64a3 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -179,7 +179,8 @@ struct CheatWindow : Window { DrawFrameRect(button_left, y + 1, button_left + 20 - 1, y + FONT_HEIGHT_NORMAL - 1, on ? COLOUR_GREEN : COLOUR_RED, on ? FR_LOWERED : FR_NONE); SetDParam(0, on ? STR_CONFIG_SETTING_ON : STR_CONFIG_SETTING_OFF); - } break; + break; + } default: { int32 val = (int32)ReadValue(ce->variable, ce->type); @@ -198,7 +199,8 @@ struct CheatWindow : Window { GetString(buf, STR_CHEAT_CHANGE_COMPANY, lastof(buf)); uint offset = 10 + GetStringBoundingBox(buf).width; DrawCompanyIcon(_local_company, rtl ? text_right - offset - 10 : text_left + offset, y + 2); - } break; + break; + } /* Set correct string for switch climate cheat */ case STR_CHEAT_SWITCH_CLIMATE: val += STR_CHEAT_SWITCH_CLIMATE_TEMPERATE_LANDSCAPE; @@ -206,7 +208,8 @@ struct CheatWindow : Window { default: SetDParam(0, val); } - } break; + break; + } } DrawString(text_left, text_right, y + 1, ce->str); |