From 5c2170982ac0440016cb2eb7caef995c51ed2c88 Mon Sep 17 00:00:00 2001
From: yugecin <yugecin@users.noreply.github.com>
Date: Fri, 30 Sep 2016 21:24:30 +0200
Subject: [PATCH] fix 1/4th circle

---
 src/yugecin/opsudance/movers/QuartCircleMover.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/yugecin/opsudance/movers/QuartCircleMover.java b/src/yugecin/opsudance/movers/QuartCircleMover.java
index e5da3be0..36e68b37 100644
--- a/src/yugecin/opsudance/movers/QuartCircleMover.java
+++ b/src/yugecin/opsudance/movers/QuartCircleMover.java
@@ -29,8 +29,8 @@ public class QuartCircleMover extends Mover {
 
 	public QuartCircleMover(GameObject start, GameObject end, int dir) {
 		super(start, end, dir);
-		middlex = (startX - endX) / 2d;
-		middley = (startY - endY) / 2d;
+		middlex = (startX + endX) / 2d;
+		middley = (startY + endY) / 2d;
 		radius = Utils.distance(middlex, middley, startX, startY);
 		ang = Math.atan2(startY - middley, startX - middlex) + Math.PI / 2d * dir;
 		middlex = middlex + Math.cos(ang) * radius;
@@ -45,7 +45,7 @@ public class QuartCircleMover extends Mover {
 
 		return new double[] {
 			middlex + Math.cos(ang) * radius,
-			middlex + Math.sin(ang) * radius
+			middley + Math.sin(ang) * radius
 		};
 	}