mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-24 09:24:49 +00:00
fixed a possible bug in adj_minefield_cells_full
This commit is contained in:
3
cell.cpp
3
cell.cpp
@@ -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)});
|
forCellIdCM(c2, i, c) res.emplace_back(adj_data{c2, c->c.mirror(i), currentmap->adj(c, i)});
|
||||||
}
|
}
|
||||||
else if(WDIM == 2) {
|
else if(WDIM == 2) {
|
||||||
cellwalker cw(c, 0);
|
cellwalker cw(c, 0); cw.cpeek();
|
||||||
transmatrix T = Id;
|
transmatrix T = Id;
|
||||||
T = T * currentmap->adj(c, 0);
|
T = T * currentmap->adj(c, 0);
|
||||||
cw += wstep;
|
cw += wstep;
|
||||||
@@ -1631,6 +1631,7 @@ EX vector<adj_data> adj_minefield_cells_full(cell *c) {
|
|||||||
cellwalker cw1 = cw;
|
cellwalker cw1 = cw;
|
||||||
do {
|
do {
|
||||||
res.emplace_back(adj_data{cw.at, cw.mirrored, T});
|
res.emplace_back(adj_data{cw.at, cw.mirrored, T});
|
||||||
|
cw.cpeek();
|
||||||
T = T * currentmap->adj(cw.at, cw.spin);
|
T = T * currentmap->adj(cw.at, cw.spin);
|
||||||
cw += wstep;
|
cw += wstep;
|
||||||
cw++;
|
cw++;
|
||||||
|
|||||||
Reference in New Issue
Block a user