summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-07-13 22:07:07 +0000
committersmatz <smatz@openttd.org>2009-07-13 22:07:07 +0000
commitdb63e1ad82537ea7b278c64b2a5383afd1bfbc5c (patch)
tree55a90f5f35def8cfb5429e92477ee309732324c8 /src
parent8041d37973b302be7a7dd3d827ab982250dffc9b (diff)
downloadopenttd-db63e1ad82537ea7b278c64b2a5383afd1bfbc5c.tar.xz
(svn r16820) -Codechange: remove unused parameter in HandleCloneVehClick()
Diffstat (limited to 'src')
-rw-r--r--src/depot_gui.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 9081c1336..8c6138c6f 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -549,9 +549,8 @@ struct DepotWindow : Window {
/**
* Clones a vehicle
* @param *v is the original vehicle to clone
- * @param *w is the window of the depot where the clone is build
*/
- void HandleCloneVehClick(const Vehicle *v, const Window *w)
+ void HandleCloneVehClick(const Vehicle *v)
{
StringID error_str;
@@ -901,7 +900,7 @@ struct DepotWindow : Window {
{
const Vehicle *v = CheckMouseOverVehicle();
- if (v != NULL) HandleCloneVehClick(v, this);
+ if (v != NULL) this->HandleCloneVehClick(v);
}
virtual void OnPlaceObjectAbort()
@@ -923,7 +922,7 @@ struct DepotWindow : Window {
/* since OTTD checks all open depot windows, we will make sure that it triggers the one with a clicked clone button */
if (v != NULL && this->IsWidgetLowered(DEPOT_WIDGET_CLONE)) {
_place_clicked_vehicle = NULL;
- HandleCloneVehClick(v, this);
+ this->HandleCloneVehClick(v);
}
}