1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-30 13:32:59 +00:00

tortoise flags are now editable with Shift+G and saved into saved levels

This commit is contained in:
Zeno Rogue
2019-01-17 00:48:55 +01:00
parent 78adac4e10
commit 35043b5528
6 changed files with 28 additions and 9 deletions

View File

@@ -2301,7 +2301,7 @@ void livecaves() {
/* evolver */
namespace tortoise {
map<cell*, cell*> emap;
map<cell*, int> emap;
map<cell*, int> babymap;
int last;
@@ -2318,13 +2318,11 @@ namespace tortoise {
const int numbits = (int) tfCOUNT;
const int mask = (1<<numbits)-1;
cell *get(cell *where) {
int getb(cell *where) {
if(emap.count(where)) return emap[where];
return where;
return getBits(where);
}
int getb(cell *where) { return getBits(get(where)); }
int countBits(int c) {
int bi = 0;
for(int i=0; i<numbits; i++) if((c >> i)&1) bi++;