Changeset - r2913:e171e3615b24
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-01-29 12:52:07
peter1138@openttd.org
(svn r3468) - Fix: Rail type availability should take climate type into account.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
players.c
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)