(svn r4265) - Fix: compile warning on VS2005 (parameter 2 different from declaration)
--- a/rail_cmd.c Mon Apr 03 15:18:12 2006 +0000
+++ b/rail_cmd.c Mon Apr 03 18:11:42 2006 +0000
@@ -916,9 +916,9 @@
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.
--- a/road_cmd.c Mon Apr 03 15:18:12 2006 +0000
+++ b/road_cmd.c Mon Apr 03 18:11:42 2006 +0000
@@ -419,7 +419,7 @@
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;
--- a/station_cmd.c Mon Apr 03 15:18:12 2006 +0000
+++ b/station_cmd.c Mon Apr 03 18:11:42 2006 +0000
@@ -1243,7 +1243,7 @@
return cost;
}
-int32 DoConvertStationRail(TileIndex tile, uint totype, bool exec)
+int32 DoConvertStationRail(TileIndex tile, RailType totype, bool exec)
{
const Station* st = GetStationByTile(tile);
--- a/tunnelbridge_cmd.c Mon Apr 03 15:18:12 2006 +0000
+++ b/tunnelbridge_cmd.c Mon Apr 03 18:11:42 2006 +0000
@@ -716,7 +716,7 @@
return CMD_ERROR;
}
-int32 DoConvertTunnelBridgeRail(TileIndex tile, uint totype, bool exec)
+int32 DoConvertTunnelBridgeRail(TileIndex tile, RailType totype, bool exec)
{
TileIndex endtile;
uint length;