mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-01 03:46:16 +00:00
fixed Fieldquotient Prairie
This commit is contained in:
parent
7792c27d09
commit
8754d7d3be
@ -2706,10 +2706,8 @@ namespace prairie {
|
|||||||
c->LHU.fi.rval = max(celldist(c), 15);
|
c->LHU.fi.rval = max(celldist(c), 15);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(!from) {
|
if(quotient == 2 || !from) {
|
||||||
for(int i=0; i<size(currfp.matrices); i++)
|
c->fval = currfp.distflower0;
|
||||||
if(currfp.distflower[i] == 0)
|
|
||||||
c->fval = currfp.inverses[i]+1;
|
|
||||||
}
|
}
|
||||||
else if(from && from->land == laPrairie && from->fval)
|
else if(from && from->land == laPrairie && from->fval)
|
||||||
c->fval = from->fval;
|
c->fval = from->fval;
|
||||||
|
@ -342,6 +342,7 @@ struct fpattern {
|
|||||||
vector<char> disthex;
|
vector<char> disthex;
|
||||||
|
|
||||||
vector<char> distwall, distriver, distwall2, distriverleft, distriverright, distflower;
|
vector<char> distwall, distriver, distwall2, distriverleft, distriverright, distflower;
|
||||||
|
int distflower0;
|
||||||
|
|
||||||
vector<eItem> markers;
|
vector<eItem> markers;
|
||||||
|
|
||||||
@ -536,6 +537,12 @@ struct fpattern {
|
|||||||
int riverdist = dijkstra(nontruncated ? distflower : distriver, indist);
|
int riverdist = dijkstra(nontruncated ? distflower : distriver, indist);
|
||||||
DEBB(DF_FIELD, (debugfile, "river dist = %d\n", riverdist));
|
DEBB(DF_FIELD, (debugfile, "river dist = %d\n", riverdist));
|
||||||
|
|
||||||
|
for(int i=0; i<size(currfp.matrices); i++)
|
||||||
|
if(currfp.distflower[i] == 0) {
|
||||||
|
distflower0 = currfp.inverses[i]+1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if(!nontruncated) {
|
if(!nontruncated) {
|
||||||
W = matrices[riverid];
|
W = matrices[riverid];
|
||||||
for(int i=0; i<wallorder; i++) {
|
for(int i=0; i<wallorder; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user