1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

support for quotient spaces with S3 > 4

This commit is contained in:
Zeno Rogue 2020-11-01 11:32:12 +01:00
parent c828934f89
commit a0574d159f
2 changed files with 9 additions and 0 deletions

View File

@ -279,6 +279,11 @@ heptagon *hrmap_standard::create_step(heptagon *h, int d) {
else
buildHeptagon(h, d, transition(h->s, d));
}
else if(S3 > 4) {
/* wrong */
h->move(d) = h;
// buildHeptagon(h, d, transition(h->s, d));
}
else if(d == 1) {
addSpin(h, d, h->move(0), h->c.spin(0)-1, -1);
}

View File

@ -1532,6 +1532,10 @@ void hrmap::draw_at(cell *at, const shiftmatrix& where) {
}
void hrmap_standard::draw_at(cell *at, const shiftmatrix& where) {
if(S3 > 4) {
hrmap::draw_at(at, where);
return;
}
drawn_cells.clear();
drawn_cells.emplace_back(at->master, hsOrigin, where * master_relative(at, true));
for(int i=0; i<isize(drawn_cells); i++) {