mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
Great Wall continuity
This commit is contained in:
parent
dc955f8a11
commit
8db0918162
13
landgen.cpp
13
landgen.cpp
@ -3512,6 +3512,19 @@ void setdist(cell *c, int d, cell *from) {
|
||||
c->mpdist = d;
|
||||
// printf("setdist %p %d [%p]\n", c, d, from);
|
||||
|
||||
// this fixes the following problem:
|
||||
// http://steamcommunity.com/app/342610/discussions/0/1470840994970724215/
|
||||
if(from && d >= 7) {
|
||||
int cdi = celldist(c);
|
||||
if(celldist(from) > cdi) {
|
||||
forCellCM(c2, c) if(celldist(c2) < cdi) {
|
||||
setdist(c2, d, c);
|
||||
from = c2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(d <= 3) lastexplore = shmup::on ? shmup::curtime : turncount;
|
||||
|
||||
if(buggyGeneration) {
|
||||
|
Loading…
Reference in New Issue
Block a user