1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-19 04:18:06 +00:00

split namespace conformal into models and history

This commit is contained in:
Zeno Rogue
2019-08-10 00:58:50 +02:00
parent 6ed530c50c
commit 5ea055b39e
25 changed files with 999 additions and 1630 deletions

View File

@@ -2472,7 +2472,7 @@ namespace dragon {
c = c->move(i); goto findhead;
}
if(cmode & sm::MAP) return c;
if(!conformal::includeHistory) {
if(!history::includeHistory) {
printf("dragon bug #3 (%p -> %p)\n", cor, c);
dragbugs = true;
}
@@ -2543,7 +2543,7 @@ namespace dragon {
int maxlen = 1000;
while(maxlen-->0) {
if(!isDragon(c->monst)) {
if(!conformal::includeHistory) printf("dragon bug #4\n");
if(!history::includeHistory) printf("dragon bug #4\n");
return total;
}
total += c->hitpoints;
@@ -2583,7 +2583,7 @@ namespace dragon {
if(c->mondir == NODIR) { printf("dragon bug\n"); break; }
c = c->move(c->mondir);
if(!c) {
if(!conformal::includeHistory) printf("dragon bug #2\n");
if(!history::includeHistory) printf("dragon bug #2\n");
break;
}
}