(svn r3468) - Fix: Rail type availability should take climate type into account.
authorpeter1138
Sun, 29 Jan 2006 12:52:07 +0000
changeset 2913 fca9b500c9f9
parent 2912 510417d85b2c
child 2914 04ce2485f05f
(svn r3468) - Fix: Rail type availability should take climate type into account.
players.c
--- a/players.c	Sun Jan 29 10:57:23 2006 +0000
+++ b/players.c	Sun Jan 29 12:52:07 2006 +0000
@@ -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);