projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da0054a
)
Add explanatory comment.
author
Eric S. Raymond
<esr@thyrsus.com>
Tue, 7 Dec 2010 21:42:07 +0000
(16:42 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Tue, 7 Dec 2010 21:42:07 +0000
(16:42 -0500)
sst.py
patch
|
blob
|
history
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):