forked from github/server
- fixed an issue in calculation tactics turn.
This commit is contained in:
parent
1494507f4a
commit
cb48e03ad2
1 changed files with 8 additions and 10 deletions
|
@ -4239,18 +4239,16 @@ battle_attacks(battle * b)
|
||||||
if (b->turn == 0) {
|
if (b->turn == 0) {
|
||||||
int tactics = get_tactics(s, NULL);
|
int tactics = get_tactics(s, NULL);
|
||||||
if (b->max_tactics > 0 && tactics == b->max_tactics) {
|
if (b->max_tactics > 0 && tactics == b->max_tactics) {
|
||||||
break;
|
for (fig=s->fighters;fig;fig=fig->next) {
|
||||||
|
|
||||||
|
/* ist in dieser Einheit noch jemand handlungsfähig? */
|
||||||
|
if (fig->fighting <= 0) continue;
|
||||||
|
|
||||||
|
/* Handle the unit's attack on someone */
|
||||||
|
do_attack(fig);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (fig=s->fighters;fig;fig=fig->next) {
|
|
||||||
|
|
||||||
/* ist in dieser Einheit noch jemand handlungsfähig? */
|
|
||||||
if (fig->fighting <= 0) continue;
|
|
||||||
|
|
||||||
/* Handle the unit's attack on someone */
|
|
||||||
do_attack(fig);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue