Codechange: Remove old group liveries savegame conversion. (#12537)

Conversion to set default group livery is in the wrong place (not in `AfterLoadGame()`), however it is not necessary any more as `AfterLoadGame()` always calls the function `UpdateCompanyLiveries()` which will do the same thing.
master
Peter Nelson 1 month ago committed by GitHub
parent 699c7e4c9d
commit 57d7359b1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -53,12 +53,6 @@ struct GRPSChunkHandler : ChunkHandler {
SlObject(g, slt);
if (IsSavegameVersionBefore(SLV_189)) g->parent = INVALID_GROUP;
if (IsSavegameVersionBefore(SLV_GROUP_LIVERIES)) {
const Company *c = Company::Get(g->owner);
g->livery.colour1 = c->livery[LS_DEFAULT].colour1;
g->livery.colour2 = c->livery[LS_DEFAULT].colour2;
}
}
}
};

Loading…
Cancel
Save