1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 06:16:00 +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

@@ -2302,7 +2302,7 @@ struct hrmap_rulegen : hrmap {
transmatrix adj(heptagon *h, int dir) override {
if(h->fieldval == -1)
return arb::get_adj(arb::current_or_slided(), h->zebraval, dir, -1, -1);
return arb::get_adj(arb::current_or_slided(), h->zebraval, dir);
int s = h->fieldval;
int dir0 = get_arb_dir(s, dir);
@@ -2316,7 +2316,7 @@ struct hrmap_rulegen : hrmap {
sid1 = treestates[s1].sid;
}
return arb::get_adj(arb::current_or_slided(), treestates[s].sid, dir0, sid1, dir1);
return arb::get_adj(arb::current_or_slided(), treestates[s].sid, dir0, sid1, dir1, false);
}
int shvid(cell *c) override {