diff --git a/core/src/io/anuke/mindustry/editor/MapEditorDialog.java b/core/src/io/anuke/mindustry/editor/MapEditorDialog.java index 5d7edd42c8..44133402b5 100644 --- a/core/src/io/anuke/mindustry/editor/MapEditorDialog.java +++ b/core/src/io/anuke/mindustry/editor/MapEditorDialog.java @@ -33,6 +33,7 @@ import static io.anuke.mindustry.Vars.*; public class MapEditorDialog extends Dialog implements Disposable{ public final MapEditor editor; + private MapView view; private MapInfoDialog infoDialog; private MapLoadDialog loadDialog; diff --git a/core/src/io/anuke/mindustry/editor/MapView.java b/core/src/io/anuke/mindustry/editor/MapView.java index 4503304907..68bef8dec8 100644 --- a/core/src/io/anuke/mindustry/editor/MapView.java +++ b/core/src/io/anuke/mindustry/editor/MapView.java @@ -24,11 +24,7 @@ import static io.anuke.mindustry.Vars.ui; public class MapView extends Element implements GestureListener{ private MapEditor editor; private EditorTool tool = EditorTool.pencil; - //private OperationStack stack = new OperationStack(); - //private DrawOperation op; - //private GridBits used; private Bresenham2 br = new Bresenham2(); - private boolean updated = false; private float offsetx, offsety; private float zoom = 1f; private boolean grid = false; @@ -84,8 +80,6 @@ public class MapView extends Element implements GestureListener{ mousex = x; mousey = y; - updated = false; - Point2 p = project(x, y); lastx = p.x; lasty = p.y; @@ -95,7 +89,6 @@ public class MapView extends Element implements GestureListener{ firstTouch.set(p); if(tool.edit){ - updated = true; ui.editor.resetSaved(); } @@ -127,7 +120,6 @@ public class MapView extends Element implements GestureListener{ for(Point2 point : points){ editor.draw(point.x, point.y, EditorTool.isPaint()); } - updated = true; } editor.flushOp(); @@ -153,7 +145,6 @@ public class MapView extends Element implements GestureListener{ for(Point2 point : points){ tool.touched(editor, point.x, point.y); } - updated = true; } if(tool == EditorTool.line && Core.input.keyDown(KeyCode.TAB)){