File diff r8627:540d4c45f380 → r8628:e4c2822288b0
src/aircraft_cmd.cpp
Show inline comments
 
@@ -1574,7 +1574,7 @@ static inline bool CheckSendAircraftToHa
 
		/* 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;
 
		}