mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 08:57:39 +00:00
3d:: fixed getcoord in euclid
This commit is contained in:
@@ -524,7 +524,7 @@ namespace euclid3 {
|
|||||||
for(int k=0; k<a; k++) { x -= getcoord(x, 0); x /= 1000; }
|
for(int k=0; k<a; k++) { x -= getcoord(x, 0); x /= 1000; }
|
||||||
x %= 1000;
|
x %= 1000;
|
||||||
if(x>500) x -= 1000;
|
if(x>500) x -= 1000;
|
||||||
if(x<-500) x += 500;
|
if(x<-500) x += 1000;
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user