Polish map editor code

This commit is contained in:
Gustas
2024-08-16 17:53:49 +03:00
committed by Paul Chote
parent 7775b42b59
commit b073155018
7 changed files with 42 additions and 54 deletions

View File

@@ -96,15 +96,13 @@ namespace OpenRA.Mods.Common.Widgets.Logic
ScrollItemWidget SetupEraseItem(ScrollItemWidget template)
{
var item = ScrollItemWidget.Setup(template,
() => markerTile == null && editor.CurrentBrush != null && editor.CurrentBrush is EditorMarkerLayerBrush,
return ScrollItemWidget.Setup(template,
() => markerTile == null && editor.CurrentBrush is EditorMarkerLayerBrush,
() =>
{
markerTile = null;
editor.SetBrush(new EditorMarkerLayerBrush(editor, null, worldRenderer));
});
return item;
}
}