(dodeliver): Remove parameter vec, work with sp->sct_item[] instead.
This is safe, because the only caller passed a copy of the latter created with getvec(), and dodeliver() doesn't change it. Caller changed. Return value no longer needed, remove.
This commit is contained in:
parent
a46cee180a
commit
d68a0b96c6
3 changed files with 7 additions and 17 deletions
|
@ -80,8 +80,6 @@ finish_sects(int etu)
|
|||
register struct sctstr *sp;
|
||||
struct natstr *np;
|
||||
int n;
|
||||
int vec[I_MAX + 1];
|
||||
int changed;
|
||||
struct distinfo *infptr;
|
||||
|
||||
if (g_distptrs == (struct distinfo *)0) {
|
||||
|
@ -112,11 +110,7 @@ finish_sects(int etu)
|
|||
np = getnatp(sp->sct_own);
|
||||
if (np->nat_money < 0)
|
||||
continue;
|
||||
changed = 0;
|
||||
if (getvec(VT_ITEM, vec, (s_char *)sp, EF_SECTOR) > 0)
|
||||
changed += dodeliver(sp, vec);
|
||||
if (changed)
|
||||
putvec(VT_ITEM, vec, (s_char *)sp, EF_SECTOR);
|
||||
dodeliver(sp);
|
||||
}
|
||||
logerror("done delivering\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue