1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-31 01:37:57 +00:00

adj_minefields_cells_with_orientation upgraded to adj_minefield_cells_full

This commit is contained in:
Zeno Rogue
2022-05-21 16:38:39 +02:00
parent 37f4e400bd
commit c80d6134e3
2 changed files with 27 additions and 16 deletions

View File

@@ -326,8 +326,8 @@ EX void prespill(cell* c, eWall t, int rad, cell *from) {
// block spill
if(t == waTemporary) return;
// cwt.at->item = itNone;
if(rad) for(auto p: adj_minefield_cells_with_orientation(c)) {
prespill(p.first, conditional_flip_slime(p.second, t), rad-1, c);
if(rad) for(auto p: adj_minefield_cells_full(c)) {
prespill(p.c, conditional_flip_slime(p.mirrored, t), rad-1, c);
}
}
@@ -342,8 +342,8 @@ EX void spillfix(cell* c, eWall t, int rad) {
changes.ccell(c);
c->wall = t;
}
if(rad) for(auto p: adj_minefield_cells_with_orientation(c)) {
spillfix(p.first, conditional_flip_slime(p.second, t), rad-1);
if(rad) for(auto p: adj_minefield_cells_full(c)) {
spillfix(p.c, conditional_flip_slime(p.mirrored, t), rad-1);
}
}