From 17ec6ed70d1a20e93efa4859f9a41ca30489e03f Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 2 Feb 2006 07:15:46 +0000 Subject: (svn r3520) Remove unused parameters from some functions --- tunnelbridge_cmd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tunnelbridge_cmd.c') diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index 19fb0330d..bcec4f093 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -663,7 +663,7 @@ static int32 DoClearTunnel(TileIndex tile, uint32 flags) // check if you're allowed to remove the tunnel owned by a town // removal allowal depends on difficulty settings if (IsTileOwner(tile, OWNER_TOWN) && _game_mode != GM_EDITOR) { - if (!CheckforTownRating(tile, flags, t, TUNNELBRIDGE_REMOVE)) { + if (!CheckforTownRating(flags, t, TUNNELBRIDGE_REMOVE)) { SetDParam(0, t->index); return_cmd_error(STR_2009_LOCAL_AUTHORITY_REFUSES); } @@ -788,8 +788,7 @@ static int32 DoClearBridge(TileIndex tile, uint32 flags) // check if you're allowed to remove the bridge owned by a town. // removal allowal depends on difficulty settings if (IsTileOwner(tile, OWNER_TOWN) && _game_mode != GM_EDITOR) { - if (!CheckforTownRating(tile, flags, t, TUNNELBRIDGE_REMOVE)) - return CMD_ERROR; + if (!CheckforTownRating(flags, t, TUNNELBRIDGE_REMOVE)) return CMD_ERROR; } if (flags & DC_EXEC) { -- cgit v1.2.3-54-g00ecf