summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-02 07:15:46 +0000
committertron <tron@openttd.org>2006-02-02 07:15:46 +0000
commitb844aa2db3f7ee77ffee09bdfb2fd9f2dc13b924 (patch)
tree986bf53fde84b3cd16b658ae7ff1a59b2d28e5ec /road_cmd.c
parent21fb5b5150672011d9bc57e227f6d6747a8938de (diff)
downloadopenttd-b844aa2db3f7ee77ffee09bdfb2fd9f2dc13b924.tar.xz
(svn r3520) Remove unused parameters from some functions
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 8bbd33c97..85a029585 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -204,7 +204,7 @@ int32 CmdRemoveRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2)
} else if (ti.type == MP_STREET) {
// check if you're allowed to remove the street owned by a town
// removal allowance depends on difficulty setting
- if (!CheckforTownRating(tile, flags, t, ROAD_REMOVE)) return CMD_ERROR;
+ if (!CheckforTownRating(flags, t, ROAD_REMOVE)) return CMD_ERROR;
// XXX - change cascading ifs to switch when doing rewrite
if ((ti.map5 & 0xF0) == 0) { // normal road