1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 02:58:05 +00:00

Hypersian Rug now works with other tori/Klein bottles

This commit is contained in:
Zeno Rogue
2017-12-28 18:39:49 +01:00
parent ead56c9c33
commit 7685868fb2
3 changed files with 94 additions and 42 deletions

View File

@@ -60,6 +60,12 @@ int gmod(int i, int j) {
return i;
}
ld frac(ld x) {
x -= int(x);
if(x < 0) x++;
return x;
}
// debug utilities
extern FILE *debugfile;