src/water_cmd.cpp
changeset 9413 7042a8ec3fa8
parent 9354 845e07db4549
child 9490 01c07bde5e84
equal deleted inserted replaced
9412:163c465bf250 9413:7042a8ec3fa8
   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 (!_settings.station.nonuniform_stations && IsTileType(tile, MP_STATION) && GetStationType(tile) == STATION_RAIL) {
   774 	if (!_settings_game.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);