3d:: fixed getcoord in euclid

This commit is contained in:
?
2019-09-12 22:38:42 +02:00
committed by Zeno Rogue
parent a11d2726fb
commit 8c38c3071c
+1 -1
View File
@@ -524,7 +524,7 @@ namespace euclid3 {
for(int k=0; k<a; k++) { x -= getcoord(x, 0); x /= 1000; }
x %= 1000;
if(x>500) x -= 1000;
if(x<-500) x += 500;
if(x<-500) x += 1000;
return x;
}