diff options
author | peter1138 <peter1138@openttd.org> | 2006-01-29 12:52:07 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-01-29 12:52:07 +0000 |
commit | bd8f10870350d82e365574b4eef34d2e832d65fc (patch) | |
tree | 01d789186124331dacd22137f62bd4d7c9e2217c | |
parent | 89a993911275486e704a871da70d077916824e98 (diff) | |
download | openttd-bd8f10870350d82e365574b4eef34d2e832d65fc.tar.xz |
(svn r3468) - Fix: Rail type availability should take climate type into account.
-rw-r--r-- | players.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -614,8 +614,9 @@ byte GetPlayerRailtypes(PlayerID p) for (i = 0; i != TOTAL_NUM_ENGINES; i++) { const Engine* e = GetEngine(i); + const EngineInfo *ei = &_engine_info[i]; - if (e->type == VEH_Train && + if (e->type == VEH_Train && HASBIT(ei->climates, _opt.landscape) && (HASBIT(e->player_avail, p) || e->intro_date <= _date) && !(RailVehInfo(i)->flags & RVI_WAGON)) { assert(e->railtype < RAILTYPE_END); |