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:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user