projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor bug fixes, preparatory to finding out why replay doesn't work.
[super-star-trek.git]
/
src
/
sst.py
diff --git
a/src/sst.py
b/src/sst.py
index 9785eb7bf215d6a78450cddc52a3cc0713c79bbe..89e2cce46225144fb9b906a2e6789325d831737a 100644
(file)
--- a/
src/sst.py
+++ b/
src/sst.py
@@
-3620,8
+3620,11
@@
def cgetline():
else:
if replayfp and not replayfp.closed:
line = replayfp.readline()
else:
if replayfp and not replayfp.closed:
line = replayfp.readline()
+ if line == '':
+ prout("*** Replay finished")
+ replayfp.close()
else:
else:
- line = raw_input()
+ line = raw_input(
"COMMAND> "
)
if logfp:
logfp.write(line + "\n")
return line
if logfp:
logfp.write(line + "\n")
return line
@@
-6505,7
+6508,6
@@
def makemoves():
chew()
setwnd(prompt_window)
clrscr()
chew()
setwnd(prompt_window)
clrscr()
- proutn("COMMAND> ")
if scan() == IHEOL:
if game.options & OPTION_CURSES:
makechart()
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
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
#ifdef BSD_BUG_FOR_BUG
# elif cmd == "VISUAL":
# visual() # perform visual scan