diff options
author | rubidium <rubidium@openttd.org> | 2007-12-02 14:29:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-02 14:29:48 +0000 |
commit | 527b72749d5160eceb6e5999c0f329701b14ee47 (patch) | |
tree | e58f8a4999ff6c34bc01aae8c8c413ceee96650c /src/autoreplace_gui.cpp | |
parent | 50fced3c66b6af28856e3776ca0e7a0799cb9827 (diff) | |
download | openttd-527b72749d5160eceb6e5999c0f329701b14ee47.tar.xz |
(svn r11555) -Codechange: use the new members introduced in r11551.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r-- | src/autoreplace_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index ee415140d..38362f8f6 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -249,7 +249,7 @@ static void ReplaceVehicleWndProc(Window *w, WindowEvent *e) * Either list is empty * or The selected replacement engine has a replacement (to prevent loops) * or The right list (new replacement) has the existing replacement vehicle selected */ - SetWindowWidgetDisabledState(w, 4, + w->SetWidgetDisabledState(4, selected_id[0] == INVALID_ENGINE || selected_id[1] == INVALID_ENGINE || EngineReplacementForPlayer(p, selected_id[1], selected_group) != INVALID_ENGINE || @@ -258,7 +258,7 @@ static void ReplaceVehicleWndProc(Window *w, WindowEvent *e) /* Disable the "Stop Replacing" button if: * The left list (existing vehicle) is empty * or The selected vehicle has no replacement set up */ - SetWindowWidgetDisabledState(w, 6, + w->SetWidgetDisabledState(6, selected_id[0] == INVALID_ENGINE || !EngineHasReplacementForPlayer(p, selected_id[0], selected_group)); |