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.
This commit is contained in:
Pasi Kallinen
2020-03-16 22:13:17 +02:00
parent 44ba4a9e96
commit 15019248ae

View File

@@ -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;
}
}