From: Eric S. Raymond Date: Thu, 5 Oct 2006 12:42:37 +0000 (+0000) Subject: OK, warp flight between quadrants works now. X-Git-Tag: 2.0~150 X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=commitdiff_plain;h=066d52967ad0499c41d2b65788aff1242d6a9604;ds=inline OK, warp flight between quadrants works now. --- 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