1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 02:07:57 +00:00

moved all the HyperRogue stuff except RogueViz to namespace 'hr' -- useful when using hr as a library

This commit is contained in:
Zeno Rogue
2018-06-11 01:58:31 +02:00
parent c2e3ed54f0
commit 4c619e60dd
68 changed files with 735 additions and 539 deletions

View File

@@ -1,9 +1,11 @@
// Hyperbolic Rogue -- smart memory cleaner
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
namespace hr {
bool memory_saving_mode = true;
#define LIM 150
static const int LIM = 150;
heptagon *last_cleared;
@@ -168,3 +170,5 @@ bool is_cell_removed(cell *c) {
void set_if_removed(cell*& c, cell *val) {
if(is_cell_removed(c)) c = val;
}
}