diff options
author | terkhen <terkhen@openttd.org> | 2010-08-01 20:52:11 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-08-01 20:52:11 +0000 |
commit | 80c43f52e838c567a4f349a1a9d901407cbb56ef (patch) | |
tree | 6eabbbb6c6d9413f2b0fbda0f2d1c73f7e352478 /src/vehicle_gui.cpp | |
parent | 7b62e4dc8e69fa37cb5792b911105371a47cf223 (diff) | |
download | openttd-80c43f52e838c567a4f349a1a9d901407cbb56ef.tar.xz |
(svn r20289) -Codechange: Unify fall through coding style.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 613f37f4a..42bec8fb6 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -516,8 +516,8 @@ struct RefitWindow : public Window { Vehicle *v = Vehicle::Get(this->window_number); BuildRefitList(v, &this->list); this->vscroll.SetCount(this->list.Length()); + /* FALL THROUGH */ } - /* FALL THROUGH */ case 1: // A new cargo has been selected. this->cargo = (this->sel >= 0 && this->sel < (int)this->list.Length()) ? &this->list[this->sel] : NULL; @@ -533,8 +533,9 @@ struct RefitWindow : public Window { this->InvalidateData(1); if (click_count == 1) break; + /* FALL THROUGH */ } - /* FALL THROUGH */ + case VRW_REFITBUTTON: // refit button if (this->cargo != NULL) { const Vehicle *v = Vehicle::Get(this->window_number); |