summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-10 19:20:30 +0000
committerrubidium <rubidium@openttd.org>2011-12-10 19:20:30 +0000
commitb5a2183214f388e723a8abf1caef68037bdfe2c8 (patch)
treead101cda87941bbe95e541a330e1ebc851a94feb /src/window_gui.h
parentd800fcae1da18bb0df1c3c1a28314b339b02ba99 (diff)
downloadopenttd-b5a2183214f388e723a8abf1caef68037bdfe2c8.tar.xz
(svn r23484) -Fix [FS#4770]: in case you already have orders, ignore the vehicles when adding an extra order
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index f3acb97fc..461d6652b 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -667,8 +667,9 @@ public:
/**
* The user clicked on a vehicle while HT_VEHICLE has been set.
* @param v clicked vehicle. It is guaranteed to be v->IsPrimaryVehicle() == true
+ * @return True if the click is handled, false if it is ignored.
*/
- virtual void OnVehicleSelect(const struct Vehicle *v) {}
+ virtual bool OnVehicleSelect(const struct Vehicle *v) { return false; }
/**
* The user cancelled a tile highlight mode that has been set.