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,10 +4239,6 @@ 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) {
|
for (fig=s->fighters;fig;fig=fig->next) {
|
||||||
|
|
||||||
/* ist in dieser Einheit noch jemand handlungsfähig? */
|
/* ist in dieser Einheit noch jemand handlungsfähig? */
|
||||||
|
@ -4252,6 +4248,8 @@ battle_attacks(battle * b)
|
||||||
do_attack(fig);
|
do_attack(fig);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** updates the number of attacking troops in each fighter struct.
|
/** updates the number of attacking troops in each fighter struct.
|
||||||
|
|
Loading…
Reference in a new issue