(svn r9918) -Fix: the available roadtypes/railtypes were not updated on GRF updates.
This commit is contained in:
@@ -4808,6 +4808,13 @@ void InitDepotWindowBlockSizes();
|
||||
|
||||
static void AfterLoadGRFs()
|
||||
{
|
||||
/* Update the bitmasks for the vehicle lists */
|
||||
Player *p;
|
||||
FOR_ALL_PLAYERS(p) {
|
||||
p->avail_railtypes = GetPlayerRailtypes(p->index);
|
||||
p->avail_roadtypes = GetPlayerRoadtypes(p->index);
|
||||
}
|
||||
|
||||
/* Pre-calculate all refit masks after loading GRF files. */
|
||||
CalculateRefitMasks();
|
||||
|
||||
|
Reference in New Issue
Block a user