mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-01 03:39:16 +00:00
3d:: fixed getcoord in euclid
This commit is contained in:
parent
a11d2726fb
commit
8c38c3071c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user