From 7bd7a884799555ab23f60b565f0906f17d22c385 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 6 Oct 2006 02:16:43 +0000 Subject: [PATCH] Minor bug fixes, preparatory to finding out why replay doesn't work. --- src/sst.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/sst.py b/src/sst.py index 9785eb7..89e2cce 100644 --- a/src/sst.py +++ b/src/sst.py @@ -3620,8 +3620,11 @@ def cgetline(): else: if replayfp and not replayfp.closed: line = replayfp.readline() + if line == '': + prout("*** Replay finished") + replayfp.close() else: - line = raw_input() + line = raw_input("COMMAND> ") if logfp: logfp.write(line + "\n") return line @@ -6505,7 +6508,6 @@ def makemoves(): chew() setwnd(prompt_window) clrscr() - proutn("COMMAND> ") if scan() == IHEOL: if game.options & OPTION_CURSES: makechart() @@ -6624,10 +6626,6 @@ def makemoves(): game.alldone = True # quit the game elif cmd == "HELP": helpme() # get help - elif cmd == "SEED": # set random-number seed - key = scan() - if key == IHREAL: - seed = int(round(aaitem)) #ifdef BSD_BUG_FOR_BUG # elif cmd == "VISUAL": # visual() # perform visual scan -- 2.31.1