X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=sst.py;h=763f903e969168606e852e5d186dabc510e852ed;hp=17d85afd78591f109b4e91e53e57e67ec2095c46;hb=7cba20c5b9da3891c216f6ea01f1460a61a7c750;hpb=50b5088c77429677b23a3efa3d558dff1e3a4c8f diff --git a/sst.py b/sst.py index 17d85af..763f903 100755 --- a/sst.py +++ b/sst.py @@ -2862,7 +2862,9 @@ def supernova(w): 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: