X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=sst.py;h=5e6d88ec3d130e41418523bed1d583246e056f65;hb=c14c52529f5ec846fb02946e885004e98a35ff2c;hp=aa91753a9cb67f0c56bf9973c4499469b8c0a589;hpb=86e3e6d44e6ce5185084ccafe421c38e6c7e7ca4;p=super-star-trek.git diff --git a/sst.py b/sst.py index aa91753..5e6d88e 100755 --- a/sst.py +++ b/sst.py @@ -32,7 +32,7 @@ try: except NameError: my_input = input -version = "2.5" +version = "2.6" docpath = (".", "doc/", "/usr/share/doc/sst/") @@ -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)