From 5781766e894157bbffe397c4ee3ca5a44d8c5a83 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 22 Feb 2012 03:17:53 -0500 Subject: [PATCH] Cleanup after the phantom-base-bug fix. --- sst.py | 4 +++- test/{test4.chk => test3.chk} | 0 test/{test4.log => test3.log} | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename test/{test4.chk => test3.chk} (100%) rename test/{test4.log => test3.log} (100%) diff --git a/sst.py b/sst.py index b3264ee..e2bf5c3 100755 --- a/sst.py +++ b/sst.py @@ -5437,7 +5437,9 @@ def setup(): game.instar = 0 for i in range(GALSIZE): for j in range(GALSIZE): - k = randrange(1, QUADSIZE**2/10) + # Can't have more stars per quadrant than fit in one decimal digit, + # if we do the chart representation will break. + k = randrange(1, min(10, QUADSIZE**2/10)) game.instar += k game.state.galaxy[i][j].stars = k # Locate star bases in galaxy diff --git a/test/test4.chk b/test/test3.chk similarity index 100% rename from test/test4.chk rename to test/test3.chk diff --git a/test/test4.log b/test/test3.log similarity index 100% rename from test/test4.log rename to test/test3.log -- 2.31.1