Explorar o código

for unitgraph switch stuff

Kevin Trometer %!s(int64=8) %!d(string=hai) anos
pai
achega
45de29140e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/ui/view/UnitGraph.java

+ 1 - 1
src/ui/view/UnitGraph.java

@@ -573,7 +573,7 @@ public class UnitGraph extends JPanel implements MouseListener, MouseMotionListe
 	public void reset() {
 	public void reset() {
 		pointList.removeAll(pointList);
 		pointList.removeAll(pointList);
 		if (isSwitch) {
 		if (isSwitch) {
-			pointList.addFirst(new Point(-4, (int) (height / 6)));
+			pointList.addFirst(new Point(-border, (int) (height / 6)));
 			pointList.addLast(new Point((int) (width) + 4, (int) (height / 6)));
 			pointList.addLast(new Point((int) (width) + 4, (int) (height / 6)));
 		} else {
 		} else {
 			pointList.addFirst(new Point(0, 0));
 			pointList.addFirst(new Point(0, 0));