From fc68881906f4a750d2f713699754d6c5289b80a4 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 3 Apr 2006 18:11:42 +0000 Subject: [PATCH] (svn r4265) - Fix: compile warning on VS2005 (parameter 2 different from declaration) --- rail_cmd.c | 6 +++--- road_cmd.c | 2 +- station_cmd.c | 2 +- tunnelbridge_cmd.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rail_cmd.c b/rail_cmd.c index 092ed6f77c..a3124570c6 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -916,9 +916,9 @@ static int32 DoConvertRail(TileIndex tile, RailType totype, bool exec) return _price.build_rail / 2; } -extern int32 DoConvertStationRail(TileIndex tile, uint totype, bool exec); -extern int32 DoConvertStreetRail(TileIndex tile, uint totype, bool exec); -extern int32 DoConvertTunnelBridgeRail(TileIndex tile, uint totype, bool exec); +extern int32 DoConvertStationRail(TileIndex tile, RailType totype, bool exec); +extern int32 DoConvertStreetRail(TileIndex tile, RailType totype, bool exec); +extern int32 DoConvertTunnelBridgeRail(TileIndex tile, RailType totype, bool exec); /** Convert one rail type to the other. You can convert normal rail to * monorail/maglev easily or vice-versa. diff --git a/road_cmd.c b/road_cmd.c index fc603c7e30..2614c842c1 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -419,7 +419,7 @@ do_clear:; return cost; } -int32 DoConvertStreetRail(TileIndex tile, uint totype, bool exec) +int32 DoConvertStreetRail(TileIndex tile, RailType totype, bool exec) { // not a railroad crossing? if (!IsLevelCrossing(tile)) return CMD_ERROR; diff --git a/station_cmd.c b/station_cmd.c index 17edbd950f..8dcc1d7004 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -1243,7 +1243,7 @@ static int32 RemoveRailroadStation(Station *st, TileIndex tile, uint32 flags) return cost; } -int32 DoConvertStationRail(TileIndex tile, uint totype, bool exec) +int32 DoConvertStationRail(TileIndex tile, RailType totype, bool exec) { const Station* st = GetStationByTile(tile); diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index 9d90015153..b53388f2b0 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -716,7 +716,7 @@ static int32 ClearTile_TunnelBridge(TileIndex tile, byte flags) return CMD_ERROR; } -int32 DoConvertTunnelBridgeRail(TileIndex tile, uint totype, bool exec) +int32 DoConvertTunnelBridgeRail(TileIndex tile, RailType totype, bool exec) { TileIndex endtile; uint length;