src/road.h
branchcpp_gui
changeset 6268 4b5241e5dd10
parent 6253 23983700e3d7
child 6298 c30fe89622df
equal deleted inserted replaced
6267:7c8ec33959b1 6268:4b5241e5dd10
    38 static inline bool IsStraightRoadTrackdir(Trackdir dir)
    38 static inline bool IsStraightRoadTrackdir(Trackdir dir)
    39 {
    39 {
    40 	return (dir & 0x06) == 0;
    40 	return (dir & 0x06) == 0;
    41 }
    41 }
    42 
    42 
       
    43 /**
       
    44  * Is it allowed to remove the given road bits from the given tile?
       
    45  * @param tile      the tile to remove the road from
       
    46  * @param remove    the roadbits that are going to be removed
       
    47  * @param owner     the actual owner of the roadbits of the tile
       
    48  * @param edge_road are the removed bits from a town?
       
    49  * @return true when it is allowed to remove the road bits
       
    50  */
       
    51 bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *edge_road);
       
    52 
    43 #endif /* ROAD_H */
    53 #endif /* ROAD_H */