1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 05:52:59 +00:00

improved in the OO fashion: draw, relative_matrix, create_step, and several minor functions are now virtual in hrmap

This commit is contained in:
Zeno Rogue
2019-03-08 22:38:44 +01:00
parent d8428f2ec3
commit 78d88b5909
19 changed files with 655 additions and 651 deletions

View File

@@ -765,9 +765,9 @@ namespace clearing {
int plantdir(cell *c) {
if(!quotient) {
generateAlts(c->master);
currentmap->generateAlts(c->master);
for(int i=0; i<S7; i++)
generateAlts(c->master->move(i));
currentmap->generateAlts(c->master->move(i));
}
int d = celldistAlt(c);
@@ -848,7 +848,7 @@ namespace clearing {
}
// cell *oc = c;
if(!euclid) generateAlts(c->master);
if(!euclid) currentmap->generateAlts(c->master);
if(pseudohept(c)) return;
heptagon *a = euclid ? NULL : c->master->alt->alt;
clearingdata& bd(bpdata[a]);