From: nhmall Date: Mon, 27 Jan 2020 22:54:13 +0000 (-0500) Subject: msdos follow-up bit X-Git-Tag: NetHack-3.7.0_WIP-2020-02-14~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd88ab61519ca607e7457f554ba4b3e8938e3ded;p=nethack msdos follow-up bit --- diff --git a/src/options.c b/src/options.c index 1af0e9d2b..504977dd7 100644 --- a/src/options.c +++ b/src/options.c @@ -3377,9 +3377,11 @@ boolean tinitial, tfrom_file; bad_negation(fullname, FALSE); return FALSE; } - op = string_for_opt(opts, negated); - iflags.wc_video_width = strtol(op, NULL, 10); - return FALSE; + if ((op = string_for_opt(opts, negated)) != empty_optstr) + iflags.wc_video_width = strtol(op, NULL, 10); + else + return FALSE; + return retval; } fullname = "video_height"; if (match_optname(opts, fullname, 7, TRUE)) { @@ -3389,9 +3391,11 @@ boolean tinitial, tfrom_file; bad_negation(fullname, FALSE); return FALSE; } - op = string_for_opt(opts, negated); - iflags.wc_video_height = strtol(op, NULL, 10); - return FALSE; + if ((op = string_for_opt(opts, negated)) != empty_optstr) + iflags.wc_video_height = strtol(op, NULL, 10); + else + return FALSE; + return retval; } #ifdef NO_TERMS /* video:string -- must be after longer tests */