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
1 changed files with 1 additions and 1 deletions

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)) {