X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=sst.py;fp=sst.py;h=8edb61b3022bc6dd1132cbba0d724d6718ebad2e;hp=aa91753a9cb67f0c56bf9973c4499469b8c0a589;hb=1e017ab4b7503ad5d8c8b40161ede483cf1ec07c;hpb=08da62875d9b030f0a8d98a702ee5b242f984477 diff --git a/sst.py b/sst.py index aa91753..8edb61b 100755 --- a/sst.py +++ b/sst.py @@ -2859,7 +2859,7 @@ def supernova(w): for nq.i in range(GALSIZE): for nq.j in range(GALSIZE): nstars += game.state.galaxy[nq.i][nq.j].stars - if stars == 0: + if nstars == 0: return # nothing to supernova exists num = rnd.integer(nstars) + 1 for nq.i in range(GALSIZE): @@ -5359,7 +5359,6 @@ def sectscan(goodScan, i, j): 'T':LIGHTRED, '@':LIGHTGREEN, 'P':LIGHTGREEN, - '?':MAGENTA, }.get(game.quad[i][j], DEFAULT)) proutn("%c " % game.quad[i][j]) textcolor(DEFAULT)