forked from github/server
indentation only
This commit is contained in:
parent
290bac3082
commit
68decb58b2
1 changed files with 4 additions and 2 deletions
|
@ -762,7 +762,8 @@ weapon_effskill(troop t, troop enemy, const weapon * w, boolean attacking, boole
|
||||||
static const armor_type *
|
static const armor_type *
|
||||||
select_armor(troop t, boolean shield)
|
select_armor(troop t, boolean shield)
|
||||||
{
|
{
|
||||||
unsigned int type = shield?ATF_SHIELD:0; unit * u = t.fighter->unit;
|
unsigned int type = shield?ATF_SHIELD:0;
|
||||||
|
unit * u = t.fighter->unit;
|
||||||
const armor * a = t.fighter->armors;
|
const armor * a = t.fighter->armors;
|
||||||
int geschuetzt = 0;
|
int geschuetzt = 0;
|
||||||
|
|
||||||
|
@ -776,7 +777,8 @@ select_armor(troop t, boolean shield)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (;a;a=a->next) {
|
for (;a;a=a->next) {
|
||||||
if ((a->atype->flags & ATF_SHIELD)==type) { geschuetzt += a->count;
|
if ((a->atype->flags & ATF_SHIELD)==type) {
|
||||||
|
geschuetzt += a->count;
|
||||||
if (geschuetzt > t.index) {
|
if (geschuetzt > t.index) {
|
||||||
/* unser Kandidat wird geschuetzt */
|
/* unser Kandidat wird geschuetzt */
|
||||||
return a->atype;
|
return a->atype;
|
||||||
|
|
Loading…
Reference in a new issue