Indented with src/scripts/indent-emp.
This commit is contained in:
parent
5f263a7753
commit
9b7adfbecc
437 changed files with 52211 additions and 51052 deletions
|
@ -53,20 +53,20 @@
|
|||
int
|
||||
military_control(struct sctstr *sp)
|
||||
{
|
||||
int tot_mil=0;
|
||||
struct nstr_item ni;
|
||||
struct lndstr land;
|
||||
int tot_mil = 0;
|
||||
struct nstr_item ni;
|
||||
struct lndstr land;
|
||||
|
||||
if (sp->sct_oldown != sp->sct_own){
|
||||
snxtitem_xy(&ni, EF_LAND, sp->sct_x, sp->sct_y);
|
||||
while (nxtitem(&ni, (s_char *)&land)){
|
||||
if (land.lnd_own == sp->sct_own)
|
||||
tot_mil += total_mil(&land);
|
||||
}
|
||||
if ((getvar(V_MILIT, (s_char *)sp, EF_SECTOR)+tot_mil) * 10
|
||||
< getvar(V_CIVIL, (s_char *)sp, EF_SECTOR))
|
||||
return 0;
|
||||
if (sp->sct_oldown != sp->sct_own) {
|
||||
snxtitem_xy(&ni, EF_LAND, sp->sct_x, sp->sct_y);
|
||||
while (nxtitem(&ni, (s_char *)&land)) {
|
||||
if (land.lnd_own == sp->sct_own)
|
||||
tot_mil += total_mil(&land);
|
||||
}
|
||||
if ((getvar(V_MILIT, (s_char *)sp, EF_SECTOR) + tot_mil) * 10
|
||||
< getvar(V_CIVIL, (s_char *)sp, EF_SECTOR))
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue