]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/set.c
Sectors need space for items, deliveries and distribution thresholds.
[empserver] / src / lib / commands / set.c
index 85d1ffa7ef2112e45efac24e769b8e7510e8a865..9375bc3aa6007b540a0a157f20a8a56fe6f1c4ea 100644 (file)
@@ -109,8 +109,8 @@ set(void)
                if (land.lnd_own == player->cnum)
                    tot_mil += total_mil(&land);
            }
-           if (tot_mil + (getvar(V_MILIT, (char *)&sect, EF_SECTOR)) * 10
-               < getvar(V_CIVIL, (char *)&sect, 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;
            }