bugfix combat turn > 0

This commit is contained in:
Enno Rehling 2010-01-24 20:31:53 +00:00
parent 2426e5d7f5
commit 60d9e616a8
1 changed files with 6 additions and 10 deletions

View File

@ -4235,18 +4235,14 @@ battle_attacks(battle * b)
for (s=b->sides;s!=b->sides+b->nsides;++s) { for (s=b->sides;s!=b->sides+b->nsides;++s) {
fighter *fig; fighter *fig;
/* Taktikrunde: */ if (b->turn!=0 || (b->max_tactics > 0 && get_tactics(s, NULL) == b->max_tactics)) {
if (b->turn == 0) { for (fig=s->fighters;fig;fig=fig->next) {
int tactics = get_tactics(s, NULL);
if (b->max_tactics > 0 && tactics == b->max_tactics) {
for (fig=s->fighters;fig;fig=fig->next) {
/* ist in dieser Einheit noch jemand handlungsfähig? */ /* ist in dieser Einheit noch jemand handlungsfähig? */
if (fig->fighting <= 0) continue; if (fig->fighting <= 0) continue;
/* Handle the unit's attack on someone */ /* Handle the unit's attack on someone */
do_attack(fig); do_attack(fig);
}
} }
} }
} }