File diff r8628:e4c2822288b0 → r8629:2bdfad795b8a
src/autoreplace_cmd.cpp
Show inline comments
 
@@ -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