X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fmoving.c;h=0be93c716f393bdfa916355c052a00ca91117f9f;hb=74121a21cca010c891ef19a178f9b9acf4d473eb;hp=b68c78be3f8ee291f75ce496a76a6cae44a185b3;hpb=2e04509ec9be1e3ad2a1f8a7e84552d6896f89ab;p=super-star-trek.git diff --git a/src/moving.c b/src/moving.c index b68c78b..0be93c7 100644 --- a/src/moving.c +++ b/src/moving.c @@ -109,7 +109,8 @@ void imove(bool novapush) prout(_("YOU WILL BE DESTROYED.")); } /* Compute final position in new quadrant */ - if (trbeam) return; /* Don't bother if we are to be beamed */ + 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); @@ -564,7 +565,11 @@ void warp(bool timewarp) 100.0*game.optime/game.state.remtime); prout(_(" percent of our")); proutn(_(" remaining time. Are you sure this is wise?\" ")); - if (ja() == false) { game.ididit = false; game.optime=0; return;} + if (ja() == false) { + game.ididit = false; + game.optime=0; + return; + } } } /* Entry WARPX */ @@ -1165,7 +1170,8 @@ void abandn(void) if (VALID_SECTOR(game.sector.x, game.sector.y) && game.quad[game.sector.x][game.sector.y] == IHDOT) break; } - if (l < QUADSIZE+1) break; /* found a spot */ + if (l < QUADSIZE+1) + break; /* found a spot */ game.sector.x=QUADSIZE/2; game.sector.y=QUADSIZE/2; newqad(true);