(svn r11471) -Codechange: one more variable retyped to enum ViewportHighlightMode

This commit is contained in:
smatz
2007-11-18 23:13:53 +00:00
parent 6097c07e4b
commit 2686901d84
4 changed files with 11 additions and 7 deletions

View File

@@ -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;
}