diff options
Diffstat (limited to 'src/road.cpp')
-rw-r--r-- | src/road.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/road.cpp b/src/road.cpp index 7fa9b4398..2a7241af1 100644 --- a/src/road.cpp +++ b/src/road.cpp @@ -96,11 +96,12 @@ RoadTypes GetPlayerRoadtypes(PlayerID p) { RoadTypes rt = ROADTYPES_NONE; - for (EngineID i = 0; i != TOTAL_NUM_ENGINES; i++) { + EngineID i; + FOR_ALL_ENGINEIDS_OF_TYPE(i, VEH_ROAD) { const Engine* e = GetEngine(i); const EngineInfo *ei = EngInfo(i); - if (e->type == VEH_ROAD && HasBit(ei->climates, _opt.landscape) && + if (HasBit(ei->climates, _opt.landscape) && (HasBit(e->player_avail, p) || _date >= e->intro_date + 365)) { SetBit(rt, HasBit(ei->misc_flags, EF_ROAD_TRAM) ? ROADTYPE_TRAM : ROADTYPE_ROAD); } |