mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
product:: fix crashes because buildAnotherEquidistant called
This commit is contained in:
parent
9de77a2280
commit
d75b0cdb0b
@ -758,10 +758,10 @@ EX void buildEquidistant(cell *c) {
|
||||
chance = hrand(100) < 10;
|
||||
}
|
||||
|
||||
if(c->landparam > 30 && b == laOcean && !generatingEquidistant && hrand(10) < 5 && chance)
|
||||
if(c->landparam > 30 && b == laOcean && !generatingEquidistant && !prod && hrand(10) < 5 && chance)
|
||||
buildAnotherEquidistant(c);
|
||||
|
||||
if(c->landparam > HAUNTED_RADIUS+5 && b == laGraveyard && !generatingEquidistant && hrand(100) < (PURE?25:5) && items[itBone] >= 10 && chance)
|
||||
if(c->landparam > HAUNTED_RADIUS+5 && b == laGraveyard && !generatingEquidistant && !prod && hrand(100) < (PURE?25:5) && items[itBone] >= 10 && chance)
|
||||
buildAnotherEquidistant(c);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user