mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-11 11:51:42 +00:00
3d:: fixed getcoord in euclid
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user