From 566df8dc655995fba246fc4373bb8fc5e7ddd6bb Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 24 Apr 2005 07:56:18 +0000 Subject: (svn r2223) When adding tracks to a railway tile reset the ground to bare land, fix for a glitch in r2131 --- rail_cmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rail_cmd.c b/rail_cmd.c index b7724d553..40498cb68 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -343,7 +343,10 @@ int32 CmdBuildSingleRail(int x, int y, uint32 flags, if (CmdFailed(ret)) return ret; cost += ret; - if (flags & DC_EXEC) _map5[tile] = m5 | rail_bit; + if (flags & DC_EXEC) { + _map2[tile] &= ~RAIL_MAP2LO_GROUND_MASK; // Bare land + _map5[tile] = m5 | rail_bit; + } break; case MP_STREET: -- cgit v1.2.3-70-g09d2