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:
6
orbs.cpp
6
orbs.cpp
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user