1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 22:12:59 +00:00

ru:: replace_block_frev

This commit is contained in:
Zeno Rogue
2025-05-24 17:13:21 +02:00
parent 9b18175eba
commit 25f095d225
2 changed files with 13 additions and 5 deletions

View File

@@ -136,6 +136,12 @@ struct room {
place_block_full(x, y, b);
}
void replace_block_frev(int x, int y, eWall w) {
auto orig = at(x, y);
replace_block(x, y, w);
add_revert(fountain_revert, [this, x, y, orig] { replace_block(x, y, orig); });
}
void generate();
void reveal(int cx, int cy);