buil() complains about the argument when snxtsct() fails. Misleading
when the argument is fine, but snxtsct() fails due to bad conditional
argument.
Same for radar() with snxtitem().
*
* Known contributors to this file:
* Steve McClure, 1998-2000
- * Markus Armbruster, 2004-2009
+ * Markus Armbruster, 2004-2011
*/
#include <config.h>
return RET_SYN;
what = *p;
- if (!snxtsct(&nstr, player->argp[2])) {
- pr("Bad sector specification.\n");
+ if (!snxtsct(&nstr, player->argp[2]))
return RET_SYN;
- }
tlev = (int)natp->nat_level[NAT_TLEV];
rlev = (int)natp->nat_level[NAT_RLEV];
case NS_LIST:
case NS_GROUP:
/* assumes a NS_LIST return is a unit no */
- if (!snxtitem(&ni, type, cp, NULL)) {
- pr("Specify at least one %s\n", ef_nameof(type));
+ if (!snxtitem(&ni, type, cp, NULL))
return RET_SYN;
- }
while (nxtitem(&ni, &item)) {
if (!player->owner)
continue;