Report "No sectors" when there are no *owned* sectors, instead of "Bad
sector specification" when there are no sectors at all.
gotsect = 0;
while (number-- > 0) {
while (nxtsct(&nstr, §)) {
gotsect = 0;
while (number-- > 0) {
while (nxtsct(&nstr, §)) {
if (!player->owner)
continue;
if (!player->owner)
continue;
if (build_it(§, type, sect.sct_item, tlev))
putsect(§);
}
snxtsct_rewind(&nstr);
}
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_SYN;
gotsect = 0;
while (nxtsct(&nstr, §)) {
return RET_SYN;
gotsect = 0;
while (nxtsct(&nstr, §)) {
if (!player->owner)
continue;
if (!player->owner)
continue;
if (build_it(§, sect.sct_item))
putsect(§);
}
if (build_it(§, sect.sct_item))
putsect(§);
}
- if (!gotsect) {
- pr("Bad sector specification.\n");
- }
+ if (!gotsect)
+ pr("No sectors.\n");