File diff r27505:d725794d218c → r27506:5d6fb3346eaa
src/industry_cmd.cpp
Show inline comments
 
@@ -2428,17 +2428,15 @@ void Industry::RecomputeProductionMultip
 
		p.rate = ClampTo<uint8_t>(CeilDiv(indspec->production_rate[&p - this->produced.data()] * this->prod_level, PRODLEVEL_DEFAULT));
 
	}
 
}
 

	
 
void Industry::FillCachedName() const
 
{
 
	char buf[256];
 
	int64 args_array[] = { this->index };
 
	StringParameters tmp_params(args_array);
 
	char *end = GetStringWithArgs(buf, STR_INDUSTRY_NAME, &tmp_params, lastof(buf));
 
	this->cached_name.assign(buf, end);
 
	this->cached_name = GetStringWithArgs(STR_INDUSTRY_NAME, &tmp_params);
 
}
 

	
 
void ClearAllIndustryCachedNames()
 
{
 
	for (Industry *ind : Industry::Iterate()) {
 
		ind->cached_name.clear();