From: Eric S. Raymond Date: Fri, 24 Feb 2012 22:39:46 +0000 (-0500) Subject: Go "Huh?" on a command that doesn't match the current game options. X-Git-Tag: 2.2~61 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=770c50ef955eac54e7a9d73215fff6001dcff756;p=super-star-trek.git Go "Huh?" on a command that doesn't match the current game options. Solves the problem with 'status' making the curses version crap out. All regression tests pass. --- diff --git a/sst.py b/sst.py index b1ab2f3..b34801a 100755 --- a/sst.py +++ b/sst.py @@ -6007,6 +6007,8 @@ def makemoves(): if cmd == "": listCommands() continue + elif opt and not (opt & game.options): + huh() else: break if cmd == "SRSCAN": # srscan