mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
fixed some bugs with push
This commit is contained in:
parent
63f895974e
commit
a6edbe3378
@ -513,7 +513,9 @@ struct changes_t {
|
||||
|
||||
void push_push(cell *tgt) {
|
||||
pushes.push_back(tgt);
|
||||
rollbacks.push_back([] { pushes.pop_back(); });
|
||||
auto v = [] { pushes.pop_back(); };
|
||||
rollbacks.push_back(v);
|
||||
commits.push_back(v);
|
||||
}
|
||||
};
|
||||
#endif
|
||||
@ -757,6 +759,7 @@ bool pcmove::after_escape() {
|
||||
nextmovetype = lmMove;
|
||||
addMessage(XLAT("You push %the1 behind you!", waBigStatue));
|
||||
animateMovement(mi.rev(), LAYER_BOAT);
|
||||
changes.push_push(cwt.at);
|
||||
return perform_actual_move();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user