X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=sst.py;h=ccb1f14c6c2fb37c1e3dfce0de536e6716553475;hp=db33c54e20577b40474f92ac7474d1c4c6782073;hb=5a0430f3474264a2502c767b1d05a9177e518b7c;hpb=97dc6b2ea8dcb30579e2e1fa9ba6cdcc7bc13dd3 diff --git a/sst.py b/sst.py index db33c54..ccb1f14 100755 --- a/sst.py +++ b/sst.py @@ -4013,15 +4013,20 @@ 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": + if key == "IHREAL": + delta.i = scanner.real + elif key == "IHEOL": + delta.i = 0 + scanner.push("\n") + else: huh() raise TrekError - delta.i = scanner.real # Check for zero movement if delta.i == 0 and delta.j == 0: scanner.chew()