X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fbattle.c;h=a1bacfab1a672ad652e3230247f4b6109c463104;hp=dba9f295c13a762a20a5c78056af1eb4de7b3b07;hb=093f7d420e9cf92fbaf751f57a199c56562ae4b5;hpb=ad1478c7cc24b761592a1e355015b44b243aeeda diff --git a/src/battle.c b/src/battle.c index dba9f29..a1bacfa 100644 --- a/src/battle.c +++ b/src/battle.c @@ -409,10 +409,7 @@ void torpedo(double course, double r, int inx, int iny, double *hit, int i, int game.ithere = false; game.tholian.x = game.tholian.y = 0; game.nenhere--; - { - coord dummy; - dropin(IHBLANK, &dummy); - } + dropin(IHBLANK); return; default: /* Problem! */ @@ -430,9 +427,10 @@ void torpedo(double course, double r, int inx, int iny, double *hit, int i, int if (shoved) { game.quad[w.x][w.y]=IHDOT; game.quad[jx][jy]=iquad; + w.x = jx; w.y = jy; prout(_(" displaced by blast to %s "), cramlc(sector, w)); for_local_enemies(ll) - game.kdist[ll] = game.kavgd[ll] = sqrt(square(game.sector.x-game.ks[ll].x)+square(game.sector.y-game.ks[ll].y)); + game.kdist[ll] = game.kavgd[ll] = distance(game.sector,game.ks[ll]); sortkl(); return; }