src/rail.cpp
changeset 9413 7042a8ec3fa8
parent 9358 2e1e4d2f71dd
child 10002 87148ad75853
equal deleted inserted replaced
9412:163c465bf250 9413:7042a8ec3fa8
   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);