Cleanup: Fix various spelling errors
This commit is contained in:
committed by
rubidium42
parent
4d0682d034
commit
d06b371254
@@ -44,7 +44,7 @@ CargoTypes _standard_cargo_mask;
|
||||
static std::vector<CargoLabel> _default_cargo_labels;
|
||||
|
||||
/**
|
||||
* Default cargo translation for upto version 7 NewGRFs.
|
||||
* Default cargo translation for up to version 7 NewGRFs.
|
||||
* This maps the original 12 cargo slots to their original label. If a climate dependent cargo is not present it will
|
||||
* map to CT_INVALID. For default cargoes this ends up as a 1:1 mapping via climate slot -> label -> cargo type.
|
||||
*/
|
||||
@@ -137,7 +137,7 @@ void BuildCargoLabelMap()
|
||||
for (const CargoSpec &cs : CargoSpec::array) {
|
||||
/* During initialization, CargoSpec can be marked valid before the label has been set. */
|
||||
if (!cs.IsValid() || cs.label == CargoLabel{} || cs.label == CT_INVALID) continue;
|
||||
/* Label already exists, don't addd again. */
|
||||
/* Label already exists, don't add again. */
|
||||
if (CargoSpec::label_map.count(cs.label) != 0) continue;
|
||||
|
||||
CargoSpec::label_map.emplace(cs.label, cs.Index());
|
||||
|
||||
Reference in New Issue
Block a user