1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 09:27:40 +00:00

3d:: fixed getcoord in euclid

This commit is contained in:
?
2019-02-27 18:34:48 +01:00
committed by Zeno Rogue
parent a11d2726fb
commit 8c38c3071c

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;
}