Add explanatory comment.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 7 Dec 2010 21:42:07 +0000 (16:42 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 7 Dec 2010 21:42:07 +0000 (16:42 -0500)
sst.py

diff --git a/sst.py b/sst.py
index d44032c7e1cfbd771dcc8061473dce3f05640622..4e65748dd6f7b35f195c3129e9cb1a36891b5bde 100755 (executable)
--- 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):