merge conflicts from the 13.2.3 release

This commit is contained in:
Enno Rehling 2017-07-09 10:42:10 +02:00
commit 6fa471bb97
1 changed files with 9 additions and 4 deletions

View File

@ -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? */