From 94623eb1f339928270ccf28ce22d67032a06b428 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 24 Apr 2019 12:56:52 -0400 Subject: [PATCH] Python 3 port fix. --- sst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sst.py b/sst.py index daf42f8..e1a3b15 100755 --- a/sst.py +++ b/sst.py @@ -836,7 +836,7 @@ def supercommander(): sc = game.state.kscmdr for (i, base) in enumerate(game.state.baseq): basetbl.append((i, (base - sc).distance())) - if game.state.baseq > 1: + if len(game.state.baseq) > 1: basetbl.sort(key=lambda x: x[1]) # look for nearest base without a commander, no Enterprise, and # without too many Klingons, and not already under attack. -- 2.31.1