retreat: Fail without charging BTUs when given no conditions

Return RET_SYN instead of RET_FAIL then.  Also drop the error message;
the usage help printed for RET_SYN should do.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2014-01-21 22:07:12 +01:00
parent c699949326
commit 1e3b7773d4

View file

@ -121,10 +121,8 @@ retreat(int type)
}
rflags |= 1 << (p - rflagsc);
}
if (*pq && !rflags) {
pr("Must give retreat conditions!\n");
return RET_FAIL;
}
if (*pq && !rflags)
return RET_SYN;
if (ni.sel == NS_GROUP && ni.group)
rflags |= RET_GROUP;
if (!*pq)