소스 검색

diffrent spawn point

Jessey Widhalm 8 년 전
부모
커밋
bd50020845
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/ui/view/HolonCanvas.java

+ 2 - 2
src/ui/view/HolonCanvas.java

@@ -128,7 +128,7 @@ public class HolonCanvas extends JPanel implements MouseWheelListener {
 
 		bodies = newBodies;
 		for (int i = bodies.size(); i < subCount; i++) {
-			HolonBody temp = new HolonBody((center.width + 1) + (-1 * i), (center.height + 1) + (-1 * i),
+			HolonBody temp = new HolonBody(center.width+(-1*i), center.height+(-1*i),
 					(subnets.get(i).getObjects().size() * 5 + 10) * controller.getHolonBodyScale() / 100,
 					subnets.get(i).getObjects().size() * 5 + 10, model.getSubNetColors().get(i));
 			temp.setId(i);
@@ -140,7 +140,7 @@ public class HolonCanvas extends JPanel implements MouseWheelListener {
 	// creates the first round of bodies
 	private void createBodies(int subCount) {
 		for (int i = 0; i < subCount; i++) {
-			HolonBody temp = new HolonBody((center.width + 1) + (-1 * i), (center.height + 1) + (-1 * i),
+			HolonBody temp = new HolonBody(center.width+(-1*i), center.height+(-1*i),
 					subnets.get(i).getObjects().size() * 5 + 10, subnets.get(i).getObjects().size() * 5 + 10,
 					model.getSubNetColors().get(i));
 			temp.setId(i);