forked from github/server
merge conflicts from the 13.2.3 release
This commit is contained in:
commit
6fa471bb97
|
@ -1370,6 +1370,9 @@ void reorder_units(region * r)
|
|||
|
||||
static region *lastregion(faction * f)
|
||||
{
|
||||
if (!f->units) {
|
||||
return NULL;
|
||||
}
|
||||
return f->last ? f->last->next : NULL;
|
||||
}
|
||||
|
||||
|
@ -1421,6 +1424,7 @@ void prepare_report(report_context *ctx, faction *f)
|
|||
ctx->addresses = NULL;
|
||||
ctx->userdata = NULL;
|
||||
/* [first,last) interval of regions with a unit in it: */
|
||||
if (f->units) {
|
||||
ctx->first = firstregion(f);
|
||||
ctx->last = lastregion(f);
|
||||
|
||||
|
@ -1485,10 +1489,11 @@ void prepare_report(report_context *ctx, faction *f)
|
|||
prepare_lighthouse(f, r, range);
|
||||
}
|
||||
|
||||
if (fval(r, RF_TRAVELUNIT) && r->seen.mode<seen_travel) {
|
||||
if (fval(r, RF_TRAVELUNIT) && r->seen.mode < seen_travel) {
|
||||
travelthru_map(r, cb_add_seen, f);
|
||||
}
|
||||
}
|
||||
}
|
||||
/* [fast,last) interval of seen regions (with lighthouses and travel)
|
||||
* TODO: what about neighbours? when are they included? do we need
|
||||
* them outside of the CR? */
|
||||
|
|
Loading…
Reference in New Issue