changeset 2913:d2aeb63e3ed6 draft

(svn r3468) - Fix: Rail type availability should take climate type into account.
author peter1138 <peter1138@openttd.org>
date Sun, 29 Jan 2006 12:52:07 +0000
parents 2c9a2de44e94
children c616450cd4a0
files players.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/players.c
+++ b/players.c
@@ -614,8 +614,9 @@
 
 	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);