X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=sst.py;h=d3c8606665ca02e8f8aa2ace2d9f6c6daf221300;hp=9b35fd7e4a0c2ced7d9d32cfc247e929b6df0576;hb=d4cf03ccbd1bd47a4637320b2f50502f4a43ca2a;hpb=ccda4abcc6bba597d5732842258b971d056e1980 diff --git a/sst.py b/sst.py index 9b35fd7..d3c8606 100755 --- a/sst.py +++ b/sst.py @@ -4247,11 +4247,15 @@ def mayday(): # There's one in this quadrant ddist = (game.base - game.sector).distance() else: + ibq = None # Force base-quadrant game to persist past loop ddist = FOREVER for ibq in game.state.baseq: xdist = QUADSIZE * (ibq - game.quadrant).distance() if xdist < ddist: ddist = xdist + if ibq is None: + prout(_("No starbases remain. You are alone in a hostile galaxy.")) + return # Since starbase not in quadrant, set up new quadrant game.quadrant = ibq newqad()