if (land.lnd_own == player->cnum)
tot_mil += total_mil(&land);
}
- if (tot_mil + (getvar(V_MILIT, (char *)§, EF_SECTOR)) * 10
- < getvar(V_CIVIL, (char *)§, EF_SECTOR)) {
+ if (tot_mil + sect.sct_item[I_MILIT] * 10
+ < sect.sct_item[I_CIVIL]) {
pr("Military control required to sell goods.\n");
return RET_FAIL;
}