summaryrefslogtreecommitdiff
path: root/src/road_internal.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-03-13 15:53:44 +0000
committeralberth <alberth@openttd.org>2010-03-13 15:53:44 +0000
commit7e1a91db21e554b1518944b5523ce997b96eb622 (patch)
treeadea3561ea55aa1f5da06c6a3e47b6cf46cc9343 /src/road_internal.h
parent9e27194651152a3bbc1cb96cb327564767c56bca (diff)
downloadopenttd-7e1a91db21e554b1518944b5523ce997b96eb622.tar.xz
(svn r19402) -Codechange: CheckAllowRemoveRoad() returns a CommandCost.
Diffstat (limited to 'src/road_internal.h')
-rw-r--r--src/road_internal.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/road_internal.h b/src/road_internal.h
index 6b0d8c8d4..0a6c02202 100644
--- a/src/road_internal.h
+++ b/src/road_internal.h
@@ -23,17 +23,7 @@
*/
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
- * @param owner the actual owner of the roadbits of the tile
- * @param rt the road type to remove the bits from
- * @param flags command flags
- * @param town_check Shall the town rating checked/affected
- * @return true when it is allowed to remove the road bits
- */
-bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, RoadType rt, DoCommandFlag flags, bool town_check = true);
+CommandCost CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, RoadType rt, DoCommandFlag flags, bool town_check = true);
/**
* Draw the catenary for tram road bits