mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 03:02:49 +00:00
gp::fixed land not generating sometimes in a4
This commit is contained in:
parent
84afa659c8
commit
711efc3be4
@ -2372,7 +2372,7 @@ void setdist(cell *c, int d, cell *from) {
|
|||||||
|
|
||||||
// this fixes the following problem:
|
// this fixes the following problem:
|
||||||
// http://steamcommunity.com/app/342610/discussions/0/1470840994970724215/
|
// http://steamcommunity.com/app/342610/discussions/0/1470840994970724215/
|
||||||
if(!generatingEquidistant && from && d >= 7) {
|
if(!generatingEquidistant && from && d >= 7 && c->land) {
|
||||||
int cdi = celldist(c);
|
int cdi = celldist(c);
|
||||||
if(celldist(from) > cdi) {
|
if(celldist(from) > cdi) {
|
||||||
forCellCM(c2, c) if(celldist(c2) < cdi) {
|
forCellCM(c2, c) if(celldist(c2) < cdi) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user