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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user