From 4415db42c242b5d873691f0e4bddbf82de48c2cc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 2 Mar 2020 02:37:07 +0100 Subject: [PATCH] fixed monster cloned after pushing --- pcmove.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcmove.cpp b/pcmove.cpp index 2eaa6c82..0fc89e2e 100644 --- a/pcmove.cpp +++ b/pcmove.cpp @@ -568,6 +568,7 @@ bool pcmove::actual_move() { if(isPushable(c2->wall) && !c2->monst && !nonAdjacentPlayer(c2, cwt.at) && fmsMove) { mip = determinePush(cwt, subdir, [c2] (cell *c) { return canPushThumperOn(c, c2, cwt.at); }); + if(mip.t) changes.ccell(mip.t); if(mip.d == NO_SPACE) { addMessage(XLAT("No room to push %the1.", c2->wall)); return false; @@ -862,6 +863,7 @@ bool pcmove::attack() { mip = determinePush(cwt, subdir, [c2] (cell *c) { return passable(c, c2, P_BLOW); }); else mip.t = c2; + if(mip.t) changes.ccell(mip.t); } if(havePushConflict(mip.t, checkonly)) return false;