water_cmd.c
changeset 3436 3bc35b8a545c
parent 3425 b972214fde4f
child 3439 af9ed14f232c
equal deleted inserted replaced
3435:f299c6f48763 3436:3bc35b8a545c
   316 			}
   316 			}
   317 		case WATER_DEPOT:
   317 		case WATER_DEPOT:
   318 			if (flags & DC_AUTO) return_cmd_error(STR_2004_BUILDING_MUST_BE_DEMOLISHED);
   318 			if (flags & DC_AUTO) return_cmd_error(STR_2004_BUILDING_MUST_BE_DEMOLISHED);
   319 
   319 
   320 			return RemoveShipDepot(tile, flags);
   320 			return RemoveShipDepot(tile, flags);
   321 	}
   321 		default: NOT_REACHED();
       
   322 	}
       
   323 
       
   324 	return 0; // useless but silences warning
   322 }
   325 }
   323 
   326 
   324 // return true if a tile is a water tile.
   327 // return true if a tile is a water tile.
   325 static bool IsWateredTile(TileIndex tile)
   328 static bool IsWateredTile(TileIndex tile)
   326 {
   329 {