Simplify best() and torp()

Use snxtsct_rewind() instead of snxtsct(), and snxtitem_rewind()
instead of snxtitem().
This commit is contained in:
Markus Armbruster 2008-07-20 16:45:38 -04:00
parent 90ba9608cb
commit 7d529769de
2 changed files with 5 additions and 5 deletions

View file

@ -54,7 +54,7 @@ best(void)
while (!player->aborted && nxtsct(&nstr, &s1)) {
if (s1.sct_own != player->cnum)
continue;
snxtsct(&nstr2, player->argp[2]);
snxtsct_rewind(&nstr2);
while (!player->aborted && nxtsct(&nstr2, &s2)) {
if (s2.sct_own != player->cnum)
continue;