diff options
author | rubidium <rubidium@openttd.org> | 2007-05-25 08:47:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-25 08:47:40 +0000 |
commit | 7ec428fe7e5e8ff82a8cd3c4cf2ff6eecb480063 (patch) | |
tree | 50597cfedb78228e87fdb5619378cb6467165a79 /src/newgrf.cpp | |
parent | 21546a66f3e3c1871ba6d7cd2dcef6148e1ecf21 (diff) | |
download | openttd-7ec428fe7e5e8ff82a8cd3c4cf2ff6eecb480063.tar.xz |
(svn r9918) -Fix: the available roadtypes/railtypes were not updated on GRF updates.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 8f0aac2ec..6095832ed 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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(); |