From 7ec428fe7e5e8ff82a8cd3c4cf2ff6eecb480063 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 25 May 2007 08:47:40 +0000 Subject: (svn r9918) -Fix: the available roadtypes/railtypes were not updated on GRF updates. --- src/newgrf.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/newgrf.cpp') 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(); -- cgit v1.2.3-54-g00ecf