summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2008-02-23 22:23:06 +0000
committerbjarni <bjarni@openttd.org>2008-02-23 22:23:06 +0000
commit8290a798fc3d8f941e87e2c52183967d223034fc (patch)
treea83cf50ad1c5a48702395201bc0945642ae513f2 /src/autoreplace_cmd.cpp
parent089969e1cac6ebfb8ac14d692d2bfcd09f21ea6a (diff)
downloadopenttd-8290a798fc3d8f941e87e2c52183967d223034fc.tar.xz
(svn r12231) -Cleanup (r12230): [autoreplace] moved Vehicle::NeedsAutorenewing() and added comments
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r--src/autoreplace_cmd.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp
index 90ff7fafe..6f1b65cb2 100644
--- a/src/autoreplace_cmd.cpp
+++ b/src/autoreplace_cmd.cpp
@@ -25,15 +25,6 @@
#include "table/strings.h"
-bool Vehicle::NeedsAutorenewing(const Player *p) const
-{
- assert(p == GetPlayer(this->owner));
-
- if (!p->engine_renew) return false;
- if (this->age - this->max_age < (p->engine_renew_months * 30)) return false;
-
- return true;
-}
/*
* move the cargo from one engine to another if possible