(svn r3343) Fix calculation of available rail types where all engines of a particular type are obsolete.
authorpeter1138
Mon, 26 Dec 2005 15:41:24 +0000
changeset 2795 20eb5c48fe2b
parent 2794 8695cc66b0af
child 2796 01f6b449115c
(svn r3343) Fix calculation of available rail types where all engines of a particular type are obsolete.
players.c
--- a/players.c	Sun Dec 25 19:44:23 2005 +0000
+++ b/players.c	Mon Dec 26 15:41:24 2005 +0000
@@ -615,7 +615,7 @@
 		const Engine* e = GetEngine(i);
 
 		if (e->type == VEH_Train &&
-				HASBIT(e->player_avail, p) &&
+				(HASBIT(e->player_avail, p) || e->intro_date <= _date) &&
 				!(RailVehInfo(i)->flags & RVI_WAGON)) {
 			assert(e->railtype < RAILTYPE_END);
 			SETBIT(rt, e->railtype);