X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsst.py;h=aa22fe10418a10d26f86d952bd3a65b574e164df;hb=066d52967ad0499c41d2b65788aff1242d6a9604;hp=8765aadfbc3cd18ae76516d82074b26724e62c94;hpb=0d9b3680e4d93294693b06490b64230f9f97f62b;p=super-star-trek.git diff --git a/src/sst.py b/src/sst.py index 8765aad..aa22fe1 100644 --- a/src/sst.py +++ b/src/sst.py @@ -3906,10 +3906,10 @@ def imove(novapush): # Compute final position in new quadrant if trbeam: # Don't bother if we are to be beamed return - game.quadrant.x = (w.x+(QUADSIZE-1))/QUADSIZE - game.quadrant.y = (w.y+(QUADSIZE-1))/QUADSIZE - game.sector.x = w.x - QUADSIZE*(game.quadrant.x-1) - game.sector.y = w.y - QUADSIZE*(game.quadrant.y-1) + game.quadrant.x = w.x/QUADSIZE + game.quadrant.y = w.y/QUADSIZE + game.sector.x = w.x - (QUADSIZE*game.quadrant.x) + game.sector.y = w.y - (QUADSIZE*game.quadrant.y) skip(1) prout(_("Entering Quadrant %s.") % game.quadrant) game.quad[game.sector.x][game.sector.y] = game.ship