summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-04-02 19:45:52 +0000
committertron <tron@openttd.org>2005-04-02 19:45:52 +0000
commit10e4c9bfabfa7111cc2861fe1421aa15e3f913ab (patch)
tree3a0b192527bd8776f320def50b4c8fea248947a1
parentad7f157ac4ee49bb0dd963c397e43abce33a4714 (diff)
downloadopenttd-10e4c9bfabfa7111cc2861fe1421aa15e3f913ab.tar.xz
(svn r2132) Fix copy&paste bug in r2131
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 32c29b6d4..832941b17 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -305,7 +305,7 @@ int32 CmdBuildSingleRail(int x, int y, uint32 flags,
return DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
}
- ret = CheckRailSlope(tileh, rail_bit, m5 & RAIL_BIT_MASK, tile);
+ ret = CheckRailSlope(tileh, rail_bit, 0, tile);
if (ret & CMD_ERROR) return ret;
cost += ret;