projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document code fragility.
[super-star-trek.git]
/
sst.py
diff --git
a/sst.py
b/sst.py
index 17d85afd78591f109b4e91e53e57e67ec2095c46..763f903e969168606e852e5d186dabc510e852ed 100755
(executable)
--- a/
sst.py
+++ b/
sst.py
@@
-2862,7
+2862,9
@@
def supernova(w):
game.iscate = False
unschedule(FSCMOVE)
unschedule(FSCDBAS)
game.iscate = False
unschedule(FSCMOVE)
unschedule(FSCDBAS)
- survivors = filter(lambda w: w != nq, game.state.kcmdr)
+ # Changing this to [w for w in game.state.kcmdr if w != nq]
+ # causes regression-test failure
+ survivors = list(filter(lambda w: w != nq, game.state.kcmdr))
comkills = len(game.state.kcmdr) - len(survivors)
game.state.kcmdr = survivors
if not game.state.kcmdr:
comkills = len(game.state.kcmdr) - len(survivors)
game.state.kcmdr = survivors
if not game.state.kcmdr: