summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-19 19:56:57 +0000
committertron <tron@openttd.org>2006-03-19 19:56:57 +0000
commita8b1d3c0da06c6d1073769b559e35001e9c9d7c7 (patch)
treeb3f00f05268c5e088d3f895382adbd21b98a5fcb
parentc357dacc9f42e03ee4dd511dada5c71669e4b94b (diff)
downloadopenttd-a8b1d3c0da06c6d1073769b559e35001e9c9d7c7.tar.xz
(svn r3988) Remove the info about valid rails on shore tiles. It's the same as for any other sloped tile
-rw-r--r--rail_cmd.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index d1a5c3380..3c79ff0d9 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -174,29 +174,7 @@ static const TrackBits _valid_tileh_slopes[][15] = {
TRACK_BIT_Y | TRACK_BIT_UPPER | TRACK_BIT_RIGHT,
TRACK_BIT_ALL,
TRACK_BIT_ALL
-},
-
-// allowed rail on coast tile
-{
- 0,
- TRACK_BIT_LEFT,
- TRACK_BIT_LOWER,
- TRACK_BIT_Y|TRACK_BIT_LEFT|TRACK_BIT_LOWER,
-
- TRACK_BIT_RIGHT,
- TRACK_BIT_ALL,
- TRACK_BIT_X|TRACK_BIT_RIGHT|TRACK_BIT_LOWER,
- TRACK_BIT_ALL,
-
- TRACK_BIT_UPPER,
- TRACK_BIT_X|TRACK_BIT_LEFT|TRACK_BIT_UPPER,
- TRACK_BIT_ALL,
- TRACK_BIT_ALL,
-
- TRACK_BIT_Y|TRACK_BIT_RIGHT|TRACK_BIT_UPPER,
- TRACK_BIT_ALL,
- TRACK_BIT_ALL
- },
+}
};
uint GetRailFoundation(uint tileh, TrackBits bits)
@@ -233,7 +211,7 @@ static uint32 CheckRailSlope(uint tileh, TrackBits rail_bits, TrackBits existing
// don't allow building on the lower side of a coast
if (IsTileType(tile, MP_WATER) &&
- ~_valid_tileh_slopes[2][tileh] & rail_bits) {
+ ~_valid_tileh_slopes[1][tileh] & rail_bits) {
return_cmd_error(STR_3807_CAN_T_BUILD_ON_WATER);
}