Add explanatory comment.
[super-star-trek.git] / 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):