1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-18 12:12:05 +00:00

synt:: replaced the combinatorial building process with floating-point-based one for hyperbolic geometry too

This commit is contained in:
Zeno Rogue
2018-08-19 00:25:43 +02:00
parent b186b9d1bb
commit 7bae01c168
7 changed files with 128 additions and 391 deletions
+11
View File
@@ -133,4 +133,15 @@ bool appears(const string& haystack, const string& needle) {
return haystack.find(needle) != string::npos;
}
/* indenter */
int current_indentation;
struct indenter {
indenter() { current_indentation += 2; }
~indenter() { current_indentation -= 2; }
};
void doindent() { for(int i=0; i<current_indentation; i++) printf(" "); }
}