projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c2d17fb
)
Make m m .1 work again.
author
Eric S. Raymond
<esr@thyrsus.com>
Sat, 25 Feb 2017 11:59:46 +0000
(06:59 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sat, 25 Feb 2017 11:59:46 +0000
(06:59 -0500)
sst.py
patch
|
blob
|
history
diff --git
a/sst.py
b/sst.py
index c36f13771ac008df35b5ae4aefd8c968e7711247..7c7d075a8c9527a484e089dcfd070ae77badfade 100755
(executable)
--- a/
sst.py
+++ b/
sst.py
@@
-4011,15
+4011,16
@@
def getcourse(isprobe):
iprompt = True
key = scanner.nexttok()
itemp = "verbose"
iprompt = True
key = scanner.nexttok()
itemp = "verbose"
- if key != "IHREAL":
+ if key == "IHREAL":
+ delta.j = scanner.real
+ else:
huh()
raise TrekError
huh()
raise TrekError
- delta.j = scanner.real
key = scanner.nexttok()
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()
# Check for zero movement
if delta.i == 0 and delta.j == 0:
scanner.chew()