mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-12 15:26:00 +00:00
fixed Orbs in undo
This commit is contained in:
10
items.cpp
10
items.cpp
@@ -128,10 +128,20 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) {
|
||||
#if CAP_TOUR
|
||||
else if(tour::on && (c2->item == itOrbSafety || c2->item == itOrbRecall)) {
|
||||
addMessage(XLAT("This Orb is not compatible with the Tutorial."));
|
||||
if(changes.on) changes.rollback();
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
else if(c2->item == itOrbSafety) {
|
||||
|
||||
if(changes.on) {
|
||||
if(changes.checking) {
|
||||
changes.rollback();
|
||||
return true;
|
||||
}
|
||||
changes.commit();
|
||||
}
|
||||
|
||||
playSound(c2, "pickup-orb"); // TODO safety
|
||||
if(!dual::state) items[c2->item] = 7;
|
||||
if(shmup::on)
|
||||
|
Reference in New Issue
Block a user