src/water_cmd.cpp
changeset 10703 2c998f3776d1
parent 10662 f455941692a3
child 10775 7061477bfbcf
equal deleted inserted replaced
10702:d36547edcb86 10703:2c998f3776d1
   769 		/* No vehicle could be flooded on this airport anymore */
   769 		/* No vehicle could be flooded on this airport anymore */
   770 		return NULL;
   770 		return NULL;
   771 	}
   771 	}
   772 
   772 
   773 	/* if non-uniform stations are disabled, flood some train in this train station (if there is any) */
   773 	/* if non-uniform stations are disabled, flood some train in this train station (if there is any) */
   774 	if (!_patches.nonuniform_stations && IsTileType(tile, MP_STATION) && GetStationType(tile) == STATION_RAIL) {
   774 	if (!_settings.station.nonuniform_stations && IsTileType(tile, MP_STATION) && GetStationType(tile) == STATION_RAIL) {
   775 		const Station *st = GetStationByTile(tile);
   775 		const Station *st = GetStationByTile(tile);
   776 
   776 
   777 		BEGIN_TILE_LOOP(t, st->trainst_w, st->trainst_h, st->train_tile)
   777 		BEGIN_TILE_LOOP(t, st->trainst_w, st->trainst_h, st->train_tile)
   778 			if (st->TileBelongsToRailStation(t)) {
   778 			if (st->TileBelongsToRailStation(t)) {
   779 				Vehicle *v = FindVehicleOnTileZ(t, 0);
   779 				Vehicle *v = FindVehicleOnTileZ(t, 0);