From b5a2183214f388e723a8abf1caef68037bdfe2c8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 10 Dec 2011 19:20:30 +0000 Subject: (svn r23484) -Fix [FS#4770]: in case you already have orders, ignore the vehicles when adding an extra order --- src/window_gui.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/window_gui.h') 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. -- cgit v1.2.3-54-g00ecf