X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=src%2Flib%2Fsubs%2Fbsanct.c;h=d9d06960bd7d54ad78cadd12d75c1dcf08374f97;hp=f784091bd2397cf0b361a52ad37d4d9e7358f0f1;hb=9b7adfbe;hpb=5f263a7753dc728809ff85c993af975f6c76e61e diff --git a/src/lib/subs/bsanct.c b/src/lib/subs/bsanct.c index f784091bd..d9d06960b 100644 --- a/src/lib/subs/bsanct.c +++ b/src/lib/subs/bsanct.c @@ -47,32 +47,32 @@ void bsanct(void) { - register int count; - struct sctstr s; - struct nstr_sect nstr; + register int count; + struct sctstr s; + struct nstr_sect nstr; - if (player->god) - return; - count = 0; - snxtsct(&nstr, "*"); - while (nxtsct(&nstr, &s)) { - if (!player->owner) - continue; - if (s.sct_type != SCT_SANCT) - continue; - pr("%s is no longer a sanctuary.\n", - xyas(s.sct_x, s.sct_y, player->cnum)); - if (s.sct_effic == 100) { - s.sct_type = SCT_CAPIT; - s.sct_newtype = SCT_CAPIT; - } else { - s.sct_type = SCT_HIWAY; - s.sct_newtype = SCT_HIWAY; - } - time(&s.sct_access); - (void) putsect(&s); - count++; + if (player->god) + return; + count = 0; + snxtsct(&nstr, "*"); + while (nxtsct(&nstr, &s)) { + if (!player->owner) + continue; + if (s.sct_type != SCT_SANCT) + continue; + pr("%s is no longer a sanctuary.\n", + xyas(s.sct_x, s.sct_y, player->cnum)); + if (s.sct_effic == 100) { + s.sct_type = SCT_CAPIT; + s.sct_newtype = SCT_CAPIT; + } else { + s.sct_type = SCT_HIWAY; + s.sct_newtype = SCT_HIWAY; } - if (count > 0) - nreport(player->cnum, N_BROKE_SANCT, 0, 1); + time(&s.sct_access); + (void)putsect(&s); + count++; + } + if (count > 0) + nreport(player->cnum, N_BROKE_SANCT, 0, 1); }