1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 03:54:47 +00:00

rulegen:: adj for floorshapes

This commit is contained in:
Zeno Rogue 2021-07-29 16:15:05 +02:00
parent 1ca7175e56
commit c996805533

View File

@ -1421,6 +1421,9 @@ struct hrmap_rulegen : hrmap {
} }
transmatrix adj(heptagon *h, int dir) override { transmatrix adj(heptagon *h, int dir) override {
if(h->fieldval == -1)
return arb::get_adj(arb::current_or_slided(), h->zebraval, dir, -1);
int s = h->fieldval; int s = h->fieldval;
int dir0 = get_arb_dir(s, dir); int dir0 = get_arb_dir(s, dir);