1
0
Fork 0

(svn r2223) When adding tracks to a railway tile reset the ground to bare land, fix for a glitch in r2131

release/0.4.5
tron 2005-04-24 07:56:18 +00:00
parent 6ceeedfd3c
commit 566df8dc65
1 changed files with 4 additions and 1 deletions

View File

@ -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: