mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
crystal:: export told
This commit is contained in:
parent
7dc57d587a
commit
e92eda4bad
@ -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; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user