Copy wparam when copying wall

This commit is contained in:
Jesse Ruderman 2021-07-12 22:42:45 -07:00
parent 039d86cd13
commit aa548e3467
2 changed files with 5 additions and 1 deletions

View File

@ -182,6 +182,7 @@ EX void moveMonster(const movei& mi) {
if(isLeader(m)) {
if(ct->wall == waBigStatue) {
ct->wall = cf->wall;
ct->wparam = cf->wparam;
cf->wall = waBigStatue;
animateMovement(mi.rev(), LAYER_BOAT);
}

View File

@ -818,6 +818,7 @@ bool pcmove::after_escape() {
changes.ccell(cwt.at);
c2->wall = cwt.at->wall;
c2->wparam = cwt.at->wparam;
if(doesnotFall(cwt.at)) {
cwt.at->wall = what;
if(cellHalfvine(what))
@ -1103,8 +1104,10 @@ bool pcmove::perform_actual_move() {
flipplayer = true; if(multi::players > 1) multi::flipped[multi::cpid] = true;
});
if(c2->item && isAlch(c2)) {
if(alchMayDuplicate(cwt.at->wall))
if(alchMayDuplicate(cwt.at->wall)) {
c2->wall = cwt.at->wall;
c2->wparam = cwt.at->wparam;
}
else
c2->wall = waNone;
}