src/rail.cpp
changeset 9358 2e1e4d2f71dd
parent 9111 48ce04029fe4
child 9413 7042a8ec3fa8
equal deleted inserted replaced
9357:f540f1fb6bd9 9358:2e1e4d2f71dd
   205 
   205 
   206 	Engine *e;
   206 	Engine *e;
   207 	FOR_ALL_ENGINES_OF_TYPE(e, VEH_TRAIN) {
   207 	FOR_ALL_ENGINES_OF_TYPE(e, VEH_TRAIN) {
   208 		const EngineInfo *ei = &e->info;
   208 		const EngineInfo *ei = &e->info;
   209 
   209 
   210 		if (HasBit(ei->climates, _opt.landscape) &&
   210 		if (HasBit(ei->climates, _settings.game_creation.landscape) &&
   211 				(HasBit(e->player_avail, p) || _date >= e->intro_date + 365)) {
   211 				(HasBit(e->player_avail, p) || _date >= e->intro_date + 365)) {
   212 			const RailVehicleInfo *rvi = &e->u.rail;
   212 			const RailVehicleInfo *rvi = &e->u.rail;
   213 
   213 
   214 			if (rvi->railveh_type != RAILVEH_WAGON) {
   214 			if (rvi->railveh_type != RAILVEH_WAGON) {
   215 				assert(rvi->railtype < RAILTYPE_END);
   215 				assert(rvi->railtype < RAILTYPE_END);