mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-02 01:49:52 +01:00
(svn r14182) -Fix: After applying NewGRF settings, all rail and road types were available as the engine availability check was performed too early.
This commit is contained in:
parent
38ee1c8d49
commit
80c9ecedcd
@ -279,6 +279,13 @@ void StartupEngines()
|
|||||||
e->player_avail = 0;
|
e->player_avail = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void AcceptEnginePreview(EngineID eid, PlayerID player)
|
static void AcceptEnginePreview(EngineID eid, PlayerID player)
|
||||||
|
@ -6002,13 +6002,6 @@ static void AfterLoadGRFs()
|
|||||||
}
|
}
|
||||||
_grf_line_to_action6_sprite_override.clear();
|
_grf_line_to_action6_sprite_override.clear();
|
||||||
|
|
||||||
/* 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. */
|
/* Pre-calculate all refit masks after loading GRF files. */
|
||||||
CalculateRefitMasks();
|
CalculateRefitMasks();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user