New lost_and_found() to record ownership changes.
Factors out the common makelost()/makenotlost() pattern.
This commit is contained in:
parent
0d139ee1d1
commit
136132773b
8 changed files with 32 additions and 44 deletions
|
@ -313,10 +313,8 @@ guerrilla(struct sctstr *sp)
|
|||
if (sp->sct_own == sp->sct_oldown)
|
||||
sp->sct_oldown = 0;
|
||||
else {
|
||||
makelost(EF_SECTOR, sp->sct_own,
|
||||
0, sp->sct_x, sp->sct_y);
|
||||
makenotlost(EF_SECTOR, sp->sct_oldown,
|
||||
0, sp->sct_x, sp->sct_y);
|
||||
lost_and_found(EF_SECTOR, sp->sct_own, sp->sct_oldown,
|
||||
0, sp->sct_x, sp->sct_y);
|
||||
takeover(sp, sp->sct_oldown);
|
||||
}
|
||||
sp->sct_mobil = oldmob;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue