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:
98e7acd
)
Minor fix to game load code.
author
Eric S. Raymond
<esr@thyrsus.com>
Sat, 18 Feb 2012 22:34:17 +0000
(17:34 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sat, 18 Feb 2012 22:34:17 +0000
(17:34 -0500)
sst.py
patch
|
blob
|
history
diff --git
a/sst.py
b/sst.py
index db0ef8c69207ac63242132937541405a26a6c0c5..691eff84dbb4e2f179528a3ecbce5becc9cc9795 100755
(executable)
--- a/
sst.py
+++ b/
sst.py
@@
-5217,7
+5217,7
@@
def freeze(boss):
def thaw():
"Retrieve saved game."
global game
- game.passwd
[0] = '\0'
+ game.passwd
= None
key = scanner.next()
if key == "IHEOL":
proutn(_("File name: "))
@@
-5225,7
+5225,6
@@
def thaw():
if key != "IHALPHA":
huh()
return True
- scanner.chew()
if '.' not in scanner.token:
scanner.token += ".trk"
try:
@@
-5235,6
+5234,7
@@
def thaw():
return
game = cPickle.load(fp)
fp.close()
+ scanner.chew()
return False
# I used <http://www.memory-alpha.org> to find planets