Tom Troppmann 6 years ago
parent
commit
8a66150f82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ui/view/UnitGraph.java

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

@@ -483,7 +483,7 @@ public class UnitGraph extends JPanel implements MouseListener, MouseMotionListe
     	}
     }
     private UnitGraphPoint generateUnitGraphPoint(Position pos) {
-    	UnitGraphPoint temp = new UnitGraphPoint((double)(pos.x - border)/(double)widthWithBorder,(double)(pos.y - border)/(double)heightWithBorder,true);
+    	UnitGraphPoint temp = new UnitGraphPoint((double)(pos.x - border)/(double)widthWithBorder,1 - (double) (pos.y - border)/(double)heightWithBorder,true);
 		temp.displayedPosition = pos;
     	return temp;
 	}