Removed unused variables
This commit is contained in:
@@ -33,6 +33,7 @@ import static io.anuke.mindustry.Vars.*;
|
|||||||
|
|
||||||
public class MapEditorDialog extends Dialog implements Disposable{
|
public class MapEditorDialog extends Dialog implements Disposable{
|
||||||
public final MapEditor editor;
|
public final MapEditor editor;
|
||||||
|
|
||||||
private MapView view;
|
private MapView view;
|
||||||
private MapInfoDialog infoDialog;
|
private MapInfoDialog infoDialog;
|
||||||
private MapLoadDialog loadDialog;
|
private MapLoadDialog loadDialog;
|
||||||
|
|||||||
@@ -24,11 +24,7 @@ import static io.anuke.mindustry.Vars.ui;
|
|||||||
public class MapView extends Element implements GestureListener{
|
public class MapView extends Element implements GestureListener{
|
||||||
private MapEditor editor;
|
private MapEditor editor;
|
||||||
private EditorTool tool = EditorTool.pencil;
|
private EditorTool tool = EditorTool.pencil;
|
||||||
//private OperationStack stack = new OperationStack();
|
|
||||||
//private DrawOperation op;
|
|
||||||
//private GridBits used;
|
|
||||||
private Bresenham2 br = new Bresenham2();
|
private Bresenham2 br = new Bresenham2();
|
||||||
private boolean updated = false;
|
|
||||||
private float offsetx, offsety;
|
private float offsetx, offsety;
|
||||||
private float zoom = 1f;
|
private float zoom = 1f;
|
||||||
private boolean grid = false;
|
private boolean grid = false;
|
||||||
@@ -84,8 +80,6 @@ public class MapView extends Element implements GestureListener{
|
|||||||
mousex = x;
|
mousex = x;
|
||||||
mousey = y;
|
mousey = y;
|
||||||
|
|
||||||
updated = false;
|
|
||||||
|
|
||||||
Point2 p = project(x, y);
|
Point2 p = project(x, y);
|
||||||
lastx = p.x;
|
lastx = p.x;
|
||||||
lasty = p.y;
|
lasty = p.y;
|
||||||
@@ -95,7 +89,6 @@ public class MapView extends Element implements GestureListener{
|
|||||||
firstTouch.set(p);
|
firstTouch.set(p);
|
||||||
|
|
||||||
if(tool.edit){
|
if(tool.edit){
|
||||||
updated = true;
|
|
||||||
ui.editor.resetSaved();
|
ui.editor.resetSaved();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -127,7 +120,6 @@ public class MapView extends Element implements GestureListener{
|
|||||||
for(Point2 point : points){
|
for(Point2 point : points){
|
||||||
editor.draw(point.x, point.y, EditorTool.isPaint());
|
editor.draw(point.x, point.y, EditorTool.isPaint());
|
||||||
}
|
}
|
||||||
updated = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
editor.flushOp();
|
editor.flushOp();
|
||||||
@@ -153,7 +145,6 @@ public class MapView extends Element implements GestureListener{
|
|||||||
for(Point2 point : points){
|
for(Point2 point : points){
|
||||||
tool.touched(editor, point.x, point.y);
|
tool.touched(editor, point.x, point.y);
|
||||||
}
|
}
|
||||||
updated = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(tool == EditorTool.line && Core.input.keyDown(KeyCode.TAB)){
|
if(tool == EditorTool.line && Core.input.keyDown(KeyCode.TAB)){
|
||||||
|
|||||||
Reference in New Issue
Block a user