From 15019248aebf09dae0e98c5aa3eac62daf66205b Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 16 Mar 2020 22:13:17 +0200 Subject: [PATCH] Fix pet location inconsistency ... if the pet attacked hero or another monster by eg. swallowing them, the pet's location might've changed during that attack. Count it as movement, so return immediately. --- src/dogmove.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dogmove.c b/src/dogmove.c index a70c9c70a..57ebcb66a 100644 --- a/src/dogmove.c +++ b/src/dogmove.c @@ -1181,6 +1181,10 @@ int after; /* this is extra fast monster movement */ } } } + + /* pet moved when attacking */ + if (mtmp->mx != omx || mtmp->my != omy) + return 0; } }