diff options
author | frosch <frosch@openttd.org> | 2010-06-21 17:35:27 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-21 17:35:27 +0000 |
commit | e931399b316c245a559962a8fcc7c2f14d4abfd4 (patch) | |
tree | 4957227f5b4780b5de5d5cd3c75d7e04d34d6ab8 /src/vehicle_gui.cpp | |
parent | 3c6fb88a095aa5404807ce26bb3a1529b25f5ffb (diff) | |
download | openttd-e931399b316c245a559962a8fcc7c2f14d4abfd4.tar.xz |
(svn r20005) -Codechange: Enumify force_proceed.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index f56c2f01e..f43f5b862 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -2025,7 +2025,7 @@ public: this->SetWidgetDisabledState(VVW_WIDGET_CLONE_VEH, !is_localcompany); if (v->type == VEH_TRAIN) { - this->SetWidgetLoweredState(VVW_WIDGET_FORCE_PROCEED, Train::From(v)->force_proceed == 2); + this->SetWidgetLoweredState(VVW_WIDGET_FORCE_PROCEED, Train::From(v)->force_proceed == TFP_SIGNAL); this->SetWidgetDisabledState(VVW_WIDGET_FORCE_PROCEED, !is_localcompany); this->SetWidgetDisabledState(VVW_WIDGET_TURN_AROUND, !is_localcompany); } |