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)
|
static region *lastregion(faction * f)
|
||||||
{
|
{
|
||||||
|
if (!f->units) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
return f->last ? f->last->next : NULL;
|
return f->last ? f->last->next : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1421,6 +1424,7 @@ void prepare_report(report_context *ctx, faction *f)
|
||||||
ctx->addresses = NULL;
|
ctx->addresses = NULL;
|
||||||
ctx->userdata = NULL;
|
ctx->userdata = NULL;
|
||||||
/* [first,last) interval of regions with a unit in it: */
|
/* [first,last) interval of regions with a unit in it: */
|
||||||
|
if (f->units) {
|
||||||
ctx->first = firstregion(f);
|
ctx->first = firstregion(f);
|
||||||
ctx->last = lastregion(f);
|
ctx->last = lastregion(f);
|
||||||
|
|
||||||
|
@ -1489,6 +1493,7 @@ void prepare_report(report_context *ctx, faction *f)
|
||||||
travelthru_map(r, cb_add_seen, f);
|
travelthru_map(r, cb_add_seen, f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* [fast,last) interval of seen regions (with lighthouses and travel)
|
/* [fast,last) interval of seen regions (with lighthouses and travel)
|
||||||
* TODO: what about neighbours? when are they included? do we need
|
* TODO: what about neighbours? when are they included? do we need
|
||||||
* them outside of the CR? */
|
* them outside of the CR? */
|
||||||
|
|
Loading…
Reference in New Issue