(capi, caploss): Leave updating player->nstat to next status().
This commit is contained in:
parent
f36aa0f89d
commit
1476e59dce
2 changed files with 1 additions and 4 deletions
|
@ -61,7 +61,6 @@ capi(void)
|
|||
xyas(sect.sct_x, sect.sct_y, player->cnum));
|
||||
return RET_FAIL;
|
||||
}
|
||||
player->nstat |= CAP;
|
||||
np->nat_xcap = sect.sct_x;
|
||||
np->nat_ycap = sect.sct_y;
|
||||
/* They have set a capital, so it wasn't sacked last. */
|
||||
|
|
|
@ -59,10 +59,8 @@ caploss(struct sctstr *sp, natid coun, char *msg)
|
|||
natp = getnatp(coun);
|
||||
if (sp->sct_x != natp->nat_xcap || sp->sct_y != natp->nat_ycap)
|
||||
return;
|
||||
if (coun == player->cnum) {
|
||||
player->nstat &= ~CAP;
|
||||
if (coun == player->cnum)
|
||||
return;
|
||||
}
|
||||
if (natp->nat_flags & NF_SACKED)
|
||||
return; /* sacked capital, not yet reset */
|
||||
natp->nat_flags |= NF_SACKED; /* no more sacking until player resets */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue