File diff r24637:67b9896774b1 → r24638:ddf123f00821
src/script/api/script_cargo.cpp
Show inline comments
 
@@ -28,13 +28,13 @@
 
}
 

	
 
/* static */ char *ScriptCargo::GetName(CargoID cargo_type)
 
{
 
	if (!IsValidCargo(cargo_type)) return nullptr;
 

	
 
	::SetDParam(0, 1 << cargo_type);
 
	::SetDParam(0, 1ULL << cargo_type);
 
	return GetString(STR_JUST_CARGO_LIST);
 
}
 

	
 
/* static */ char *ScriptCargo::GetCargoLabel(CargoID cargo_type)
 
{
 
	if (!IsValidCargo(cargo_type)) return nullptr;
 
@@ -77,7 +77,7 @@
 
}
 

	
 
/* static */ ScriptCargo::DistributionType ScriptCargo::GetDistributionType(CargoID cargo_type)
 
{
 
	if (!ScriptCargo::IsValidCargo(cargo_type)) return INVALID_DISTRIBUTION_TYPE;
 
	return (ScriptCargo::DistributionType)_settings_game.linkgraph.GetDistributionType(cargo_type);
 
}
 
\ No newline at end of file
 
}