1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

fixed a revert-related bug which could cause a non-collected key to be considered collected

This commit is contained in:
Zeno Rogue 2021-03-09 14:05:47 +01:00
parent 56485f20a9
commit 04472e513d

View File

@ -204,7 +204,7 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) {
else if(c2->item == itKey) {
playSound(c2, "pickup-key");
for(int i=0; i<isize(yendor::yi); i++) if(yendor::yi[i].actual_key() == c2)
yendor::yi[i].found = true;
changes.value_set(yendor::yi[i].found, true);
items[itKey]++;
}
else if(!telekinesis && cantGetGrimoire(c2)) {