1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-05 20:07:58 +00:00

tes:: split get_adj into two functions, one with connection specified (inlcuding mirror), and one not

This commit is contained in:
Zeno Rogue
2022-10-08 01:53:02 +02:00
parent 29f6bbbe90
commit d8da9639d0
4 changed files with 25 additions and 16 deletions

View File

@@ -464,7 +464,10 @@ struct hrmap_arbi_full : hrmap {
}
transmatrix adj(heptagon *h, int dl) override {
return arb::get_adj(arb::current_or_slided(), arb::id_of(h), dl, h->c.move(dl) ? arb::id_of(h->c.move(dl)) : -1, h->c.move(dl) ? h->c.spin(dl) : -1);
if(h->c.move(dl))
return arb::get_adj(arb::current_or_slided(), arb::id_of(h), dl, arb::id_of(h->c.move(dl)), h->c.spin(dl), h->c.mirror(dl));
else
return arb::get_adj(arb::current_or_slided(), arb::id_of(h), dl);
}
ld spin_angle(cell *c, int d) override { return SPIN_NOT_AVAILABLE; }