From 162edb85a8f9d606e631bd1183bf24704ac8792e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 26 Feb 2022 11:28:37 +0100 Subject: [PATCH] when having Orb of Freedom + Orb of Time, other orbs are no longer drained by Freedom checks --- multigame.cpp | 5 ++--- orbs.cpp | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/multigame.cpp b/multigame.cpp index 2fc692ce..129e0710 100644 --- a/multigame.cpp +++ b/multigame.cpp @@ -179,8 +179,7 @@ EX namespace dual { dynamicval dm(dual::state, 2); int cg = currently_loaded; - bool orbusedbak[ittypes]; - for(int i=0; i orbused; +EX array lastorbused; EX bool markOrb(eItem it) { if(!items[it]) return false; @@ -314,6 +315,7 @@ EX bool distanceBound(cell *c1, cell *c2, int d) { EX void checkFreedom(cell *cf) { manual_celllister cl; + dynamicval d(orbused); cl.add(cf); for(int i=0; i