src/water_cmd.cpp
changeset 9354 845e07db4549
parent 9322 cf7dc39f9576
child 9413 7042a8ec3fa8
equal deleted inserted replaced
9353:9d76aef9fe2b 9354:845e07db4549
   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);