forked from github/server
warning
This commit is contained in:
parent
622d0d496e
commit
03d96be44f
|
@ -2203,13 +2203,13 @@ make_side(battle * b, const faction * f, const group * g, unsigned int flags, co
|
||||||
{
|
{
|
||||||
side *s1 = calloc(sizeof(struct side), 1);
|
side *s1 = calloc(sizeof(struct side), 1);
|
||||||
bfaction * bf;
|
bfaction * bf;
|
||||||
unit * u;
|
|
||||||
|
|
||||||
#ifdef SIMPLE_COMBAT
|
#ifdef SIMPLE_COMBAT
|
||||||
if (!fval(b->region->terrain, LAND_REGION)) {
|
if (!fval(b->region->terrain, LAND_REGION)) {
|
||||||
/* in ozeanregionen ist jeder kampf kurz */
|
/* in ozeanregionen ist jeder kampf kurz */
|
||||||
flags |= SIDE_HASGUARDS;
|
flags |= SIDE_HASGUARDS;
|
||||||
} else {
|
} else {
|
||||||
|
unit * u;
|
||||||
for (u = b->region->units; u; u = u->next) {
|
for (u = b->region->units; u; u = u->next) {
|
||||||
if (getguard(u)) {
|
if (getguard(u)) {
|
||||||
faction *fv = visible_faction(f, u);
|
faction *fv = visible_faction(f, u);
|
||||||
|
|
Loading…
Reference in New Issue