mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-17 21:24:30 +00:00
synt:: replaced the combinatorial building process with floating-point-based one for hyperbolic geometry too
This commit is contained in:
1 parent
b186b9d1bb
commit
7bae01c168
7 files changed
+128
-391
No files matched your search
@@ -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(" "); }
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user