1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +00:00

fixed big Minefields

This commit is contained in:
Zeno Rogue 2020-07-30 21:27:51 +02:00
parent f7e545d8de
commit 6974567965

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);