gotsect = 0;
while (number-- > 0) {
while (nxtsct(&nstr, §)) {
- gotsect++;
if (!player->owner)
continue;
+ gotsect = 1;
if (build_it(§, type, sect.sct_item, tlev))
putsect(§);
}
snxtsct_rewind(&nstr);
}
- if (!gotsect) {
- pr("Bad sector specification.\n");
- }
+ if (!gotsect)
+ pr("No sectors.\n");
return RET_OK;
}
return RET_SYN;
gotsect = 0;
while (nxtsct(&nstr, §)) {
- gotsect++;
if (!player->owner)
continue;
+ gotsect = 1;
if (build_it(§, sect.sct_item))
putsect(§);
}
- if (!gotsect) {
- pr("Bad sector specification.\n");
- }
+ if (!gotsect)
+ pr("No sectors.\n");
return RET_OK;
}