mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-15 12:54:07 +00:00
racing:: reduced setdist parameter
This commit is contained in:
parent
365b6595d3
commit
71ef823c43
@ -259,6 +259,8 @@ void generate_track() {
|
|||||||
for(cell *c: cl.lst) c->bardir = NOBARRIERS;
|
for(cell *c: cl.lst) c->bardir = NOBARRIERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int dl = 7 - getDistLimit() - genrange_bonus;
|
||||||
|
|
||||||
setdist(s, 6, NULL);
|
setdist(s, 6, NULL);
|
||||||
makeEmpty(s);
|
makeEmpty(s);
|
||||||
|
|
||||||
@ -290,7 +292,7 @@ void generate_track() {
|
|||||||
goal = c;
|
goal = c;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
setdist(c, 4, parent[c]);
|
setdist(c, (8 + dl) / 2, parent[c]);
|
||||||
forCellEx(c1, c) if(!bad(c1, c) && !parent.count(c1)) {
|
forCellEx(c1, c) if(!bad(c1, c) && !parent.count(c1)) {
|
||||||
parent[c1] = c;
|
parent[c1] = c;
|
||||||
cellbydist[trackval(c1)].push_back(c1);
|
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) 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) {
|
if(1) {
|
||||||
manual_celllister cl;
|
manual_celllister cl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user