1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-18 06:35:12 +00:00

fixed a possible bug in adj_minefield_cells_full

This commit is contained in:
Zeno Rogue
2025-10-16 23:20:26 +02:00
parent 97aa373b6f
commit 88e0e5e3cd

View File

@@ -1623,7 +1623,7 @@ EX vector<adj_data> adj_minefield_cells_full(cell *c) {
forCellIdCM(c2, i, c) res.emplace_back(adj_data{c2, c->c.mirror(i), currentmap->adj(c, i)});
}
else if(WDIM == 2) {
cellwalker cw(c, 0);
cellwalker cw(c, 0); cw.cpeek();
transmatrix T = Id;
T = T * currentmap->adj(c, 0);
cw += wstep;
@@ -1631,6 +1631,7 @@ EX vector<adj_data> adj_minefield_cells_full(cell *c) {
cellwalker cw1 = cw;
do {
res.emplace_back(adj_data{cw.at, cw.mirrored, T});
cw.cpeek();
T = T * currentmap->adj(cw.at, cw.spin);
cw += wstep;
cw++;