1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

racing:: reduced setdist parameter

This commit is contained in:
? 2019-02-27 15:53:22 +01:00 committed by Zeno Rogue
parent 365b6595d3
commit 71ef823c43

View File

@ -258,6 +258,8 @@ void generate_track() {
celllister cl(s, TWIDTH, 1000000, NULL);
for(cell *c: cl.lst) c->bardir = NOBARRIERS;
}
int dl = 7 - getDistLimit() - genrange_bonus;
setdist(s, 6, NULL);
makeEmpty(s);
@ -290,7 +292,7 @@ void generate_track() {
goal = c;
break;
}
setdist(c, 4, parent[c]);
setdist(c, (8 + dl) / 2, parent[c]);
forCellEx(c1, c) if(!bad(c1, c) && !parent.count(c1)) {
parent[c1] = c;
cellbydist[trackval(c1)].push_back(c1);
@ -362,7 +364,7 @@ void generate_track() {
} */
// for(cell *c:track) if(c->land != laMirror) c->bardir = NOBARRIERS;
for(cell *c:track) setdist(c, 0, NULL);
for(cell *c:track) setdist(c, dl, NULL);
if(1) {
manual_celllister cl;