1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-01 09:59:03 +00:00

Merge pull request #484 from josephcsible/choice_space_safety

Fix crash when Orbs of Choice, Space, and Safety interact
This commit is contained in:
Zeno Rogue
2025-12-11 10:29:45 +01:00
committed by GitHub

View File

@@ -865,9 +865,11 @@ void telekinesis(cell *dest) {
eItem it = cwt.at->item;
bool saf = it == itOrbSafety;
collectItem(cwt.at, cwt.at, true);
if(cwt.at->item == it)
if(saf)
;
else if(cwt.at->item == it)
animateMovement(match(dest, cwt.at), LAYER_BOAT);
else if(!saf)
else
animate_item_throw(dest, cwt.at, it);
useupOrb(itOrbSpace, cost.first);