mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-19 16:07:40 +00:00
crystal:: export told
This commit is contained in:
@@ -49,7 +49,7 @@ bool view_east = false;
|
|||||||
|
|
||||||
EX bool used_compass_inside;
|
EX bool used_compass_inside;
|
||||||
|
|
||||||
ldcoord told(coord c) { ldcoord a; for(int i=0; i<MAXDIM; i++) a[i] = c[i]; return a; }
|
EX ldcoord told(coord c) { ldcoord a; for(int i=0; i<MAXDIM; i++) a[i] = c[i]; return a; }
|
||||||
// strange number to prevent weird acting in case of precision errors
|
// strange number to prevent weird acting in case of precision errors
|
||||||
coord roundcoord(ldcoord c) { coord a; for(int i=0; i<MAXDIM; i++) a[i] = floor(c[i] + .5136); return a; }
|
coord roundcoord(ldcoord c) { coord a; for(int i=0; i<MAXDIM; i++) a[i] = floor(c[i] + .5136); return a; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user