changeset 8628 | 2e7e4cdfe96f |
parent 8566 | e81f60ee6a59 |
child 8648 | dcd755910009 |
--- a/src/aircraft_cmd.cpp Sat Feb 23 11:42:41 2008 +0000 +++ b/src/aircraft_cmd.cpp Sat Feb 23 22:01:55 2008 +0000 @@ -1574,7 +1574,7 @@ /* There is no autoreplace assigned to this EngineID so we will set it to renew to the same type if needed */ new_engine = v->engine_type; - if(!p->engine_renew || (v->age - v->max_age) < p->engine_renew_months * 30) { + if (!v->NeedsAutorenewing(p)) { /* No need to replace the aircraft */ return false; }