From: Eric S. Raymond Date: Tue, 7 Dec 2010 21:42:07 +0000 (-0500) Subject: Add explanatory comment. X-Git-Tag: 2.1~3 X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=commitdiff_plain;h=a9fb126d166bb25141c7a0d072d0bd4508084549 Add explanatory comment. --- diff --git a/sst.py b/sst.py index d44032c..4e65748 100755 --- a/sst.py +++ b/sst.py @@ -5727,6 +5727,7 @@ def newqad(): game.quad[QUADSIZE-1][0] = 'X' if game.quad[QUADSIZE-1][QUADSIZE-1]=='.': game.quad[QUADSIZE-1][QUADSIZE-1] = 'X' + # Sort enemies by distance so 'nearest' is meaningful game.enemies.sort(lambda x, y: cmp(x.kdist, y.kdist)) # And finally the stars for i in range(q.stars):