mirror of https://github.com/OpenTTD/OpenTTD
(svn r2223) When adding tracks to a railway tile reset the ground to bare land, fix for a glitch in r2131
parent
6ceeedfd3c
commit
566df8dc65
|
@ -343,7 +343,10 @@ int32 CmdBuildSingleRail(int x, int y, uint32 flags,
|
||||||
if (CmdFailed(ret)) return ret;
|
if (CmdFailed(ret)) return ret;
|
||||||
cost += 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;
|
break;
|
||||||
|
|
||||||
case MP_STREET:
|
case MP_STREET:
|
||||||
|
|
Loading…
Reference in New Issue