summaryrefslogtreecommitdiff
path: root/src/airport_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-01 18:53:30 +0000
committerrubidium <rubidium@openttd.org>2010-08-01 18:53:30 +0000
commite356cb94050797cccbf05b3a411105528da8ee90 (patch)
tree3d98354dc5983a03e685f116b1b5c5b73607de0f /src/airport_gui.cpp
parent605f6d0ed3c81a77d533f3db40ed50350d57536c (diff)
downloadopenttd-e356cb94050797cccbf05b3a411105528da8ee90.tar.xz
(svn r20281) -Codechange: unify case scope closure + break coding style
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r--src/airport_gui.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index 01f421753..772499a4a 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -257,7 +257,8 @@ public:
d.width += padding.width;
d.height += padding.height;
*size = maxdim(*size, d);
- } break;
+ break;
+ }
case BAIRW_AIRPORT_LIST: {
for (int i = 0; i < NUM_AIRPORTS; i++) {
@@ -269,7 +270,8 @@ public:
this->line_height = FONT_HEIGHT_NORMAL + WD_MATRIX_TOP + WD_MATRIX_BOTTOM;
size->height = this->vscroll.GetCapacity() * this->line_height;
- } break;
+ break;
+ }
default: break;
}
@@ -356,7 +358,8 @@ public:
if (num_clicked >= this->vscroll.GetCount()) break;
const AirportSpec *as = GetAirportSpecFromClass(_selected_airport_class, num_clicked);
if (as->IsAvailable()) this->SelectOtherAirport(num_clicked);
- } break;
+ break;
+ }
case BAIRW_BTN_DONTHILIGHT: case BAIRW_BTN_DOHILIGHT:
_settings_client.gui.station_show_coverage = (widget != BAIRW_BTN_DONTHILIGHT);