fixed big Minefields

This commit is contained in:
Zeno Rogue 2020-07-30 21:27:51 +02:00
parent f7e545d8de
commit 6974567965
1 changed files with 5 additions and 0 deletions

View File

@ -1886,6 +1886,11 @@ EX void moreBigStuff(cell *c) {
EX void generate_mines() {
vector<cell*> candidates;
if(bounded)
for(cell *c: currentmap->allcells())
setdist(c, 7, nullptr);
for(cell *c: currentmap->allcells())
if(c->wall == waMineUnknown)
candidates.push_back(c);