diff --git a/complex.cpp b/complex.cpp index 84983f4c..46a69127 100644 --- a/complex.cpp +++ b/complex.cpp @@ -2706,10 +2706,8 @@ namespace prairie { c->LHU.fi.rval = max(celldist(c), 15); } else { - if(!from) { - for(int i=0; ifval = currfp.inverses[i]+1; + if(quotient == 2 || !from) { + c->fval = currfp.distflower0; } else if(from && from->land == laPrairie && from->fval) c->fval = from->fval; diff --git a/fieldpattern.cpp b/fieldpattern.cpp index 85b1cd52..9191bf90 100644 --- a/fieldpattern.cpp +++ b/fieldpattern.cpp @@ -342,6 +342,7 @@ struct fpattern { vector disthex; vector distwall, distriver, distwall2, distriverleft, distriverright, distflower; + int distflower0; vector markers; @@ -536,6 +537,12 @@ struct fpattern { int riverdist = dijkstra(nontruncated ? distflower : distriver, indist); DEBB(DF_FIELD, (debugfile, "river dist = %d\n", riverdist)); + for(int i=0; i