From 4f6b04e7e10908c84329895cbb60f0af9a9d6ae9 Mon Sep 17 00:00:00 2001
From: Tim Felgentreff <timfelgentreff@gmail.com>
Date: Sat, 4 Jul 2020 11:37:49 +0200
Subject: [PATCH] change tile means change tile, just don't change the
 surroundings of a decorative tile

---
 src/editor/edmap.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/editor/edmap.cpp b/src/editor/edmap.cpp
index 210d23fc4..c7dcde0d6 100644
--- a/src/editor/edmap.cpp
+++ b/src/editor/edmap.cpp
@@ -100,9 +100,6 @@ void EditorChangeTile(const Vec2i &pos, int tileIndex, const Vec2i &lock_pos)
 
 	// Change the flags
 	CMapField &mf = *Map.Field(pos);
-	if (mf.isDecorative()) {
-		return;
-	}
 	int tile = tileIndex;
 	if (TileToolRandom) {
 		int n = 0;
@@ -128,7 +125,9 @@ void EditorChangeTile(const Vec2i &pos, int tileIndex, const Vec2i &lock_pos)
 	UI.Minimap.UpdateSeenXY(pos);
 	UI.Minimap.UpdateXY(pos);
 
-	EditorChangeSurrounding(pos, lock_pos);
+	if (!mf.isDecorative()) {
+		EditorChangeSurrounding(pos, lock_pos);
+	}
 }
 
 /**