From: Eric S. Raymond Date: Fri, 6 Oct 2006 02:16:43 +0000 (+0000) Subject: Minor bug fixes, preparatory to finding out why replay doesn't work. X-Git-Tag: 2.0~147 X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=commitdiff_plain;h=7bd7a884799555ab23f60b565f0906f17d22c385 Minor bug fixes, preparatory to finding out why replay doesn't work. --- 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