change tile means change tile, just don't change the surroundings of a decorative tile

This commit is contained in:
Tim Felgentreff 2020-07-04 11:37:49 +02:00
parent 7ad3935dc6
commit 4f6b04e7e1

View file

@ -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);
}
}
/**