mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-04 14:30:35 +00:00
fixed big Minefields
This commit is contained in:
parent
f7e545d8de
commit
6974567965
@ -1886,6 +1886,11 @@ EX void moreBigStuff(cell *c) {
|
|||||||
|
|
||||||
EX void generate_mines() {
|
EX void generate_mines() {
|
||||||
vector<cell*> candidates;
|
vector<cell*> candidates;
|
||||||
|
|
||||||
|
if(bounded)
|
||||||
|
for(cell *c: currentmap->allcells())
|
||||||
|
setdist(c, 7, nullptr);
|
||||||
|
|
||||||
for(cell *c: currentmap->allcells())
|
for(cell *c: currentmap->allcells())
|
||||||
if(c->wall == waMineUnknown)
|
if(c->wall == waMineUnknown)
|
||||||
candidates.push_back(c);
|
candidates.push_back(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user