From: Eric S. Raymond Date: Sat, 25 Feb 2017 11:59:46 +0000 (-0500) Subject: Make m m .1 work again. X-Git-Tag: 2.2~30 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=aa6040b239a54a4fe69ba0d2e142b2ffa8bda9f4;p=super-star-trek.git Make m m .1 work again. --- diff --git a/sst.py b/sst.py index c36f137..7c7d075 100755 --- a/sst.py +++ b/sst.py @@ -4011,15 +4011,16 @@ def getcourse(isprobe): iprompt = True key = scanner.nexttok() itemp = "verbose" - if key != "IHREAL": + if key == "IHREAL": + delta.j = scanner.real + else: huh() raise TrekError - delta.j = scanner.real key = scanner.nexttok() - if key != "IHREAL": - huh() - raise TrekError - delta.i = scanner.real + if key == "IHREAL": + delta.i = scanner.real + else: + delta.i = 0 # Check for zero movement if delta.i == 0 and delta.j == 0: scanner.chew()