src/rail.cpp
branchNewGRF_ports
changeset 10991 d8811e327d12
parent 10731 67db0d431d5e
equal deleted inserted replaced
10731:67db0d431d5e 10991:d8811e327d12
   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, _settings.game_creation.landscape) &&
   210 		if (HasBit(ei->climates, _settings_game.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);