From: Eric S. Raymond Date: Sat, 18 Feb 2012 22:34:17 +0000 (-0500) Subject: Minor fix to game load code. X-Git-Tag: 2.2~112 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2a1e7baaa229ba188baa2cf8b35cc6ec1485f35b;p=super-star-trek.git Minor fix to game load code. --- diff --git a/sst.py b/sst.py index db0ef8c..691eff8 100755 --- 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 to find planets