summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-11-18 23:13:53 +0000
committersmatz <smatz@openttd.org>2007-11-18 23:13:53 +0000
commit32802f863bfd39790af07f65be3c2cb00e9b6058 (patch)
tree249034d78ee0976c3785c11b59468e3d92001ae2 /src/depot_gui.cpp
parentbe591f158e07e07b4a42e2b34a6bf7eeb0ef561d (diff)
downloadopenttd-32802f863bfd39790af07f65be3c2cb00e9b6058.tar.xz
(svn r11471) -Codechange: one more variable retyped to enum ViewportHighlightMode
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 1598186a9..d0329597d 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -414,7 +414,7 @@ static void DepotClick(Window *w, int x, int y)
int mode = GetVehicleFromDepotWndPt(w, x, y, &v, &gdvp);
/* share / copy orders */
- if (_thd.place_mode && mode <= 0) {
+ if (_thd.place_mode != VHM_NONE && mode <= 0) {
_place_clicked_vehicle = (WP(w, depot_d).type == VEH_TRAIN ? gdvp.head : v);
return;
}