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:
parent
56485f20a9
commit
04472e513d
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user