File diff r24596:eddf98238034 → r24597:afde5721a3b6
src/newgrf_config.cpp
Show inline comments
 
@@ -260,7 +260,7 @@ void GRFParameterInfo::SetValue(struct G
 
	} else {
 
		SB(config->param[this->param_nr], this->first_bit, this->num_bit, value);
 
	}
 
	config->num_params = max<uint>(config->num_params, this->param_nr + 1);
 
	config->num_params = std::max<uint>(config->num_params, this->param_nr + 1);
 
	SetWindowDirty(WC_GAME_OPTIONS, WN_GAME_OPTIONS_NEWGRF_STATE);
 
}
 

	
 
@@ -339,7 +339,7 @@ static bool CalcGRFMD5Sum(GRFConfig *con
 
	if (f == nullptr) return false;
 

	
 
	long start = ftell(f);
 
	size = min(size, GRFGetSizeOfDataSection(f));
 
	size = std::min(size, GRFGetSizeOfDataSection(f));
 

	
 
	if (start < 0 || fseek(f, start, SEEK_SET) < 0) {
 
		FioFCloseFile(f);