travel will displace pets rather than stop
do not autopickup unpaid items in shops
death due an unseen gas spore's explosion resulted in "killed by a died"
+allow optional parameter "true", "yes", "false", or "no" for boolean options
Platform- and/or Interface-Specific Fixes
* options list
*/
for (i = 0; boolopt[i].name; i++) {
- if (match_optname(opts, boolopt[i].name, 3, FALSE)) {
+ if (match_optname(opts, boolopt[i].name, 3, TRUE)) {
/* options that don't exist */
if (!boolopt[i].addr) {
if (!initial && !negated)
return;
}
+ op = string_for_opt(opts, TRUE);
+
+ if (op) {
+ if (negated) {
+ badoption(opts);
+ return;
+ }
+ if (!strcmp(op, "true") || !strcmp(op, "yes"))
+ negated = FALSE;
+ else if (!strcmp(op, "false") || !strcmp(op, "no"))
+ negated = TRUE;
+ else {
+ badoption(opts);
+ return;
+ }
+ }
+
*(boolopt[i].addr) = !negated;
/* 0 means boolean opts */