From a9fb126d166bb25141c7a0d072d0bd4508084549 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 7 Dec 2010 16:42:07 -0500 Subject: [PATCH] Add explanatory comment. --- sst.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.31.1