summaryrefslogtreecommitdiff
path: root/src/road.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-23 00:17:46 +0000
committerrubidium <rubidium@openttd.org>2007-02-23 00:17:46 +0000
commita5697946d15e0642dbb53cd02d99e6c9c2ea63d7 (patch)
tree7e92dee8a90a165f6b39d9c0ca40c40e554032cf /src/road.h
parent3717774e0ae5ef1b112bdc4bb96a5d14ed708a3f (diff)
downloadopenttd-a5697946d15e0642dbb53cd02d99e6c9c2ea63d7.tar.xz
(svn r8852) -Fix (r8735): make the dynamite tool for drive through road stops as if it were removing a normal road tile (consider the local authority and such).
-Fix (r8735): remove drive through road stops on town owned roads when going bankrupt/being removed.
Diffstat (limited to 'src/road.h')
-rw-r--r--src/road.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/road.h b/src/road.h
index c9adfa85a..0f1967f42 100644
--- a/src/road.h
+++ b/src/road.h
@@ -40,4 +40,14 @@ static inline bool IsStraightRoadTrackdir(Trackdir dir)
return (dir & 0x06) == 0;
}
+/**
+ * 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
+ * @param owner the actual owner of the roadbits of the tile
+ * @param edge_road are the removed bits from a town?
+ * @return true when it is allowed to remove the road bits
+ */
+bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *edge_road);
+
#endif /* ROAD_H */