diff --git a/src/common/kernel/battle.c b/src/common/kernel/battle.c index 98e0ea50e..eed742f7c 100644 --- a/src/common/kernel/battle.c +++ b/src/common/kernel/battle.c @@ -2141,7 +2141,7 @@ make_side(battle * b, const faction * f, const group * g, unsigned int flags, co bfaction * bf; #ifdef SIMPLE_COMBAT - if (!fval(b->region->terrain, LAND_REGION)) { + if (fval(b->region->terrain, SEA_REGION)) { /* every fight in an ocean is short */ flags |= SIDE_HASGUARDS; } else { @@ -2282,7 +2282,7 @@ aftermath(battle * b) side *s; int dead_players = 0; bfaction * bf; - boolean battle_was_relevant = (boolean)(b->turn+(b->has_tactics_turn?1:0)>2); + boolean ships_damaged = (boolean)(b->turn+(b->has_tactics_turn?1:0)>2); /* only used for ship damage! */ #ifdef TROLLSAVE int *trollsave = calloc(2 * cv_size(&b->factions), sizeof(int)); @@ -2552,7 +2552,7 @@ aftermath(battle * b) /* Wenn sich die Einheit auf einem Schiff befindet, wird * dieses Schiff beschädigt. Andernfalls ein Schiff, welches * evt. zuvor verlassen wurde. */ - if (battle_was_relevant) { + if (ships_damaged) { if (du->ship) sh = du->ship; else sh = leftship(du); @@ -2567,7 +2567,7 @@ aftermath(battle * b) } } - if (battle_was_relevant) { + if (ships_damaged) { ship **sp = &r->ships; while (*sp) { @@ -2587,7 +2587,7 @@ aftermath(battle * b) fprintf(bdebug, "The battle lasted %d turns, %s and %s.\n", b->turn, b->has_tactics_turn?"had a tactic turn":"had no tactic turn", - battle_was_relevant?"was relevant":"was not relevant."); + ships_damaged?"was relevant":"was not relevant."); } } diff --git a/src/common/kernel/eressea.c b/src/common/kernel/eressea.c index 2abe4c585..b08071b67 100644 --- a/src/common/kernel/eressea.c +++ b/src/common/kernel/eressea.c @@ -2180,7 +2180,7 @@ setguard(unit * u, unsigned int flags) unsigned int getguard(const unit * u) { - if (!fval(u->region->terrain, LAND_REGION)) return GUARD_NONE; + if (fval(u->region->terrain, SEA_REGION)) return GUARD_NONE; if (fval(u, UFL_GUARD)) { attrib * a = a_find(u->attribs, &at_guard); if (a) return (unsigned int)a->data.i; diff --git a/src/common/kernel/eressea.h b/src/common/kernel/eressea.h index 900670533..0a992e150 100644 --- a/src/common/kernel/eressea.h +++ b/src/common/kernel/eressea.h @@ -41,7 +41,7 @@ extern "C" { #define HERBS_ROT /* herbs owned by units have a chance to rot. */ #define SHIPDAMAGE /* Schiffsbeschädigungen */ #define INSECT_POTION /* Spezialtrank für Insekten */ -#define ORCIFICATION /* gioving snotlings to the peasants gets counted */ +#define ORCIFICATION /* giving snotlings to the peasants gets counted */ #undef TROLLSAVE /* saving throw for dead trolls */ #include