summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-07 23:25:27 +0000
committerDarkvater <darkvater@openttd.org>2006-11-07 23:25:27 +0000
commitcb34a5ad3472716dd0f72efc2eea501fd5172c84 (patch)
treedd216e1b72bac6ccaf3abc3178677b09d38b7f28
parentf03125c656449d8018c4a80c536bb865b54996dd (diff)
downloadopenttd-cb34a5ad3472716dd0f72efc2eea501fd5172c84.tar.xz
(svn r7108) -Fix (r7106): signed/unsigned comparison warning
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 29999fabb..6c3593ea0 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -285,7 +285,7 @@ int32 CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* XXX Assume a 'higher' railtype has preference. This means we
* will convert from normal rail to electrified rail, but not
* the other way around. */
- if (GetRailType(tile) < p1) {
+ if (GetRailType(tile) < (RailType)p1) {
ret = DoCommand(tile, tile, p1, flags, CMD_CONVERT_RAIL);
if (CmdFailed(ret)) return ret;
cost += ret;