File diff r8137:f972428945e8 → r8138:f851b4cbdad1
src/road_internal.h
Show inline comments
 
/* $Id$ */
 

	
 
/** @file road_internal.h Functions used internally by the roads. */
 

	
 
#ifndef ROAD_INTERNAL_H
 
#define ROAD_INTERNAL_H
 

	
 
#include "tile_cmd.h"
 

	
 
/**
 
 * Clean up unneccesary RoadBits of a planed tile.
 
 * @param tile current tile
 
 * @param org_rb planed RoadBits
 
 * @return optimised RoadBits
 
 */
 
RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb);
 

	
 
/**
 
 * Is it allowed to remove the given road bits from the given tile?
 
 * @param tile      the tile to remove the road from
 
 * @param remove    the roadbits that are going to be removed