summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-07 08:42:30 +0000
committercelestar <celestar@openttd.org>2006-04-07 08:42:30 +0000
commitf771c969586efd04f19252e5cd8494f4c5c125b8 (patch)
tree1758884f12bb891e28c1fc8f309200286599d064
parent90927c22a56d7094efab267e648e3a40cef98363 (diff)
downloadopenttd-f771c969586efd04f19252e5cd8494f4c5c125b8.tar.xz
(svn r4311) -Fix/Codechange: Clear the railtype when removing rail under a bridge. FS#103 exhibited this problem
-rw-r--r--bridge_map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge_map.h b/bridge_map.h
index 485935fbf..f2b5d4ee4 100644
--- a/bridge_map.h
+++ b/bridge_map.h
@@ -148,6 +148,7 @@ static inline void SetClearUnderBridge(TileIndex t)
assert(IsBridgeMiddle(t));
SetTileOwner(t, OWNER_NONE);
SB(_m[t].m5, 3, 3, 0 << 2 | 0);
+ SB(_m[t].m3, 0, 4, 0);
}
static inline void SetWaterUnderBridge(TileIndex t)
@@ -155,6 +156,7 @@ static inline void SetWaterUnderBridge(TileIndex t)
assert(IsBridgeMiddle(t));
SetTileOwner(t, OWNER_WATER);
SB(_m[t].m5, 3, 3, 0 << 2 | 1);
+ SB(_m[t].m3, 0, 4, 0);
}
static inline void SetRailUnderBridge(TileIndex t, Owner o, RailType r)
@@ -170,6 +172,7 @@ static inline void SetRoadUnderBridge(TileIndex t, Owner o)
assert(IsBridgeMiddle(t));
SetTileOwner(t, o);
SB(_m[t].m5, 3, 3, 1 << 2 | TRANSPORT_ROAD);
+ SB(_m[t].m3, 0, 4, 0);
}