Codechange: Change from numeric to descriptive SLV enum labels for last entries.

This commit is contained in:
Peter Nelson
2019-02-01 22:46:12 +00:00
committed by PeterN
parent 0f37a683a2
commit e21ade375e
10 changed files with 54 additions and 54 deletions

View File

@@ -1214,8 +1214,8 @@ bool AfterLoadGame()
}
}
/* Railtype moved from m3 to m8 in version SLV_200. */
if (IsSavegameVersionBefore(SLV_200)) {
/* Railtype moved from m3 to m8 in version SLV_EXTEND_RAILTYPES. */
if (IsSavegameVersionBefore(SLV_EXTEND_RAILTYPES)) {
for (TileIndex t = 0; t < map_size; t++) {
switch (GetTileType(t)) {
case MP_RAILWAY:
@@ -3015,7 +3015,7 @@ bool AfterLoadGame()
}
}
if (IsSavegameVersionBefore(SLV_202)) {
if (IsSavegameVersionBefore(SLV_EXTEND_INDUSTRY_CARGO_SLOTS)) {
/* Make sure added industry cargo slots are cleared */
Industry *i;
FOR_ALL_INDUSTRIES(i) {