forked from github/server
Im Astralraum wurde ueberall Strasse angenommen (Regionen mit roadreq=0
haben immer eine Strasse).
This commit is contained in:
parent
c2273a50a5
commit
5441963633
|
@ -906,6 +906,8 @@ roadto(const region * r, const region * r2)
|
||||||
|
|
||||||
for (i = 0; i != MAXDIRECTIONS; i++)
|
for (i = 0; i != MAXDIRECTIONS; i++)
|
||||||
if (rconnect(r, i) == r2) {
|
if (rconnect(r, i) == r2) {
|
||||||
|
if (terrain[rterrain(r)].roadreq==0) return false;
|
||||||
|
if (terrain[rterrain(r2)].roadreq==0) return false;
|
||||||
if (rroad(r, i) < terrain[rterrain(r)].roadreq) return false;
|
if (rroad(r, i) < terrain[rterrain(r)].roadreq) return false;
|
||||||
if (rroad(r2, back[i]) < terrain[rterrain(r2)].roadreq) return false;
|
if (rroad(r2, back[i]) < terrain[rterrain(r2)].roadreq) return false;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue