mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-27 06:04:25 +01:00
Codefix: incorrect indentation for GetCargoTranslationTable (#15156)
This commit is contained in:
@@ -519,17 +519,17 @@ void ResetPersistentNewGRFData()
|
||||
* @param grffile GRF file.
|
||||
* @returns Readonly cargo translation table to use.
|
||||
*/
|
||||
std::span<const CargoLabel> GetCargoTranslationTable(const GRFFile &grffile)
|
||||
{
|
||||
/* Always use the translation table if it's installed. */
|
||||
if (!grffile.cargo_list.empty()) return grffile.cargo_list;
|
||||
std::span<const CargoLabel> GetCargoTranslationTable(const GRFFile &grffile)
|
||||
{
|
||||
/* Always use the translation table if it's installed. */
|
||||
if (!grffile.cargo_list.empty()) return grffile.cargo_list;
|
||||
|
||||
/* Pre-v7 use climate-dependent "slot" table. */
|
||||
if (grffile.grf_version < 7) return GetClimateDependentCargoTranslationTable();
|
||||
/* Pre-v7 use climate-dependent "slot" table. */
|
||||
if (grffile.grf_version < 7) return GetClimateDependentCargoTranslationTable();
|
||||
|
||||
/* Otherwise use climate-independent "bitnum" table. */
|
||||
return GetClimateIndependentCargoTranslationTable();
|
||||
}
|
||||
/* Otherwise use climate-independent "bitnum" table. */
|
||||
return GetClimateIndependentCargoTranslationTable();
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct the Cargo Mapping
|
||||
|
||||
Reference in New Issue
Block a user