From 0373893813d00bb606002044c106f15b53e7021c Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Mon, 16 Dec 2024 19:45:31 +0100 Subject: [PATCH] Cleanup from f927f5db3. --- src/dogmove.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dogmove.c b/src/dogmove.c index 4c54d2772f..aa734b4b67 100644 --- a/src/dogmove.c +++ b/src/dogmove.c @@ -1013,7 +1013,7 @@ dog_move( struct obj *obj = (struct obj *) 0; xint16 otyp; boolean cursemsg[9], summoned, do_eat = FALSE; - boolean better_with_displacing = FALSE, ranged_only; + boolean better_with_displacing = FALSE; coordxy nix, niy; /* position mtmp is (considering) moving to */ coordxy nx, ny; /* temporary coordinates */ xint16 cnt, uncursedcnt, chcnt; @@ -1134,8 +1134,6 @@ dog_move( if (!edog && (j = distu(nx, ny)) > 16 && j >= udist) continue; - ranged_only = FALSE; - if ((info[i] & ALLOW_M) && MON_AT(nx, ny)) { int mstatus; struct monst *mtmp2 = m_at(nx, ny);