Remove useless sanctuary break logic from designate
Don't call bsanct() when desi() is redesignating a sanctuary. It's pointless, because only deities can redesignate sanctuaries, and bsanct() does nothing for them.
This commit is contained in:
parent
0a61f8eb78
commit
dc8a7fe3ef
1 changed files with 0 additions and 6 deletions
|
@ -44,7 +44,6 @@ desi(void)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
char *p;
|
char *p;
|
||||||
int breaksanct;
|
|
||||||
int cap_x;
|
int cap_x;
|
||||||
int cap_y;
|
int cap_y;
|
||||||
int des;
|
int des;
|
||||||
|
@ -55,7 +54,6 @@ desi(void)
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
|
|
||||||
breaksanct = 0;
|
|
||||||
if (!snxtsct(&nstr, player->argp[1]))
|
if (!snxtsct(&nstr, player->argp[1]))
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
natp = getnatp(player->cnum);
|
natp = getnatp(player->cnum);
|
||||||
|
@ -95,8 +93,6 @@ desi(void)
|
||||||
}
|
}
|
||||||
if (sect.sct_type == des && sect.sct_newtype == des)
|
if (sect.sct_type == des && sect.sct_newtype == des)
|
||||||
continue;
|
continue;
|
||||||
if (sect.sct_type == SCT_SANCT)
|
|
||||||
breaksanct++;
|
|
||||||
if ((des == SCT_HARBR || des == SCT_BHEAD) && !sect.sct_coastal) {
|
if ((des == SCT_HARBR || des == SCT_BHEAD) && !sect.sct_coastal) {
|
||||||
pr("%s does not border on water.\n",
|
pr("%s does not border on water.\n",
|
||||||
xyas(nstr.x, nstr.y, player->cnum));
|
xyas(nstr.x, nstr.y, player->cnum));
|
||||||
|
@ -137,7 +133,5 @@ desi(void)
|
||||||
}
|
}
|
||||||
if (changed)
|
if (changed)
|
||||||
writemap(player->cnum);
|
writemap(player->cnum);
|
||||||
if (breaksanct)
|
|
||||||
bsanct();
|
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue