Fix two minor bugs, one in the shove code and one in debugme().
[super-star-trek.git] / src / battle.c
index 2977e6bbc7972e70315589f8c527cb8787b4b5a4..22cc13649df9e51cdc71546222d451b5fb99e465 100644 (file)
@@ -423,10 +423,8 @@ void torpedo(double course, double r, int inx, int iny, double *hit, int i, int
        setwnd(message_window);
     }
     if (shoved) {
-       coord w;
-       w.x = jx; w.y = jy;
-       game.quad[jx][jy]=iquad;
        game.quad[w.x][w.y]=IHDOT;
+       game.quad[jx][jy]=iquad;
        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));