(svn r2223) When adding tracks to a railway tile reset the ground to bare land, fix for a glitch in r2131
authortron
Sun, 24 Apr 2005 07:56:18 +0000
changeset 1719 b428568cec03
parent 1718 cef0773365eb
child 1720 b53cf8e5cd44
(svn r2223) When adding tracks to a railway tile reset the ground to bare land, fix for a glitch in r2131
rail_cmd.c
--- a/rail_cmd.c	Fri Apr 22 05:41:09 2005 +0000
+++ b/rail_cmd.c	Sun Apr 24 07:56:18 2005 +0000
@@ -343,7 +343,10 @@
 			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: