tree_cmd.c
changeset 2968 b17821f292cb
parent 2958 3f8946daf55f
child 2981 31760b6a88aa
--- a/tree_cmd.c	Fri Feb 03 23:02:01 2006 +0000
+++ b/tree_cmd.c	Sat Feb 04 11:53:31 2006 +0000
@@ -493,6 +493,8 @@
 				/* fall through */
 
 			case 2: { /* add a neighbouring tree */
+				byte m3 = _m[tile].m3;
+
 				tile += ToTileIndexDiff(_tileloop_trees_dir[Random() & 7]);
 
 				if (!IsTileType(tile, MP_CLEAR)) return;
@@ -508,6 +510,7 @@
 					default: return;
 				}
 
+				_m[tile].m3 = m3;
 				_m[tile].m4 = 0;
 				SetTileType(tile, MP_TREES);