projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix range error in Tholian movement.
[super-star-trek.git]
/
src
/
sst.py
diff --git
a/src/sst.py
b/src/sst.py
index bfa8abce995372f78dac07a5b4b6efe91e76a8a8..68d87a1840e8ee8c296647550d68af202f7cba60 100644
(file)
--- a/
src/sst.py
+++ b/
src/sst.py
@@
-1057,11
+1057,11
@@
def movetholian():
for i in range(QUADSIZE):
if game.quad[0][i]!=IHWEB and game.quad[0][i]!=IHT:
return
for i in range(QUADSIZE):
if game.quad[0][i]!=IHWEB and game.quad[0][i]!=IHT:
return
- if game.quad[QUADSIZE
][i]!=IHWEB and game.quad[QUADSIZE
][i]!=IHT:
+ if game.quad[QUADSIZE
-1][i]!=IHWEB and game.quad[QUADSIZE-1
][i]!=IHT:
return
if game.quad[i][0]!=IHWEB and game.quad[i][0]!=IHT:
return
return
if game.quad[i][0]!=IHWEB and game.quad[i][0]!=IHT:
return
- if game.quad[i][QUADSIZE
]!=IHWEB and game.quad[i][QUADSIZE
]!=IHT:
+ if game.quad[i][QUADSIZE
-1]!=IHWEB and game.quad[i][QUADSIZE-1
]!=IHT:
return
# All plugged up -- Tholian splits
game.quad[game.tholian.kloc.i][game.tholian.kloc.j]=IHWEB
return
# All plugged up -- Tholian splits
game.quad[game.tholian.kloc.i][game.tholian.kloc.j]=IHWEB
@@
-3432,7
+3432,7
@@
def prouts(line):
time.sleep(0.03)
proutn(c)
if game.options & OPTION_CURSES:
time.sleep(0.03)
proutn(c)
if game.options & OPTION_CURSES:
-
wrefresh(curwnd
)
+
curwnd.refresh(
)
else:
sys.stdout.flush()
if not replayfp or replayfp.closed:
else:
sys.stdout.flush()
if not replayfp or replayfp.closed: