change tile means change tile, just don't change the surroundings of a decorative tile
This commit is contained in:
parent
7ad3935dc6
commit
4f6b04e7e1
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue