(svn r23484) -Fix [FS#4770]: in case you already have orders, ignore the vehicles when adding an extra order

This commit is contained in:
rubidium
2011-12-10 19:20:30 +00:00
parent d800fcae1d
commit b5a2183214
4 changed files with 9 additions and 6 deletions

View File

@@ -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.