diff options
author | alberth <alberth@openttd.org> | 2014-09-07 16:09:48 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2014-09-07 16:09:48 +0000 |
commit | 83f0b02ff5d61ee7ba9ce37730a9a6a0f67fbf4d (patch) | |
tree | 64dbbf400ae8b5c6348e8c3858bfd91e90c6c4d8 /src/autoreplace_gui.cpp | |
parent | 876cc82f335efb7dbca96c97353609ad7af783c1 (diff) | |
download | openttd-83f0b02ff5d61ee7ba9ce37730a9a6a0f67fbf4d.tar.xz |
(svn r26798) -Codechange: Code style fixes.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r-- | src/autoreplace_gui.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index e6ce64cfa..e0470c9b3 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -393,16 +393,12 @@ public: * Either engines list is empty * or The selected replacement engine has a replacement (to prevent loops). */ this->SetWidgetDisabledState(WID_RV_START_REPLACE, - this->sel_engine[0] == INVALID_ENGINE || - this->sel_engine[1] == INVALID_ENGINE || - EngineReplacementForCompany(c, this->sel_engine[1], this->sel_group) != INVALID_ENGINE); + this->sel_engine[0] == INVALID_ENGINE || this->sel_engine[1] == INVALID_ENGINE || EngineReplacementForCompany(c, this->sel_engine[1], this->sel_group) != INVALID_ENGINE); /* Disable the "Stop Replacing" button if: * The left engines list (existing vehicle) is empty * or The selected vehicle has no replacement set up */ - this->SetWidgetDisabledState(WID_RV_STOP_REPLACE, - this->sel_engine[0] == INVALID_ENGINE || - !EngineHasReplacementForCompany(c, this->sel_engine[0], this->sel_group)); + this->SetWidgetDisabledState(WID_RV_STOP_REPLACE, this->sel_engine[0] == INVALID_ENGINE || !EngineHasReplacementForCompany(c, this->sel_engine[0], this->sel_group)); if (this->window_number == VEH_TRAIN) { /* sets the colour of that art thing */ |