From 466cc5cc0a884c560d20ca7d15032570d7139020 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 9 Sep 2022 12:24:21 +0200 Subject: [PATCH] removed redundant pre-changes orbused rollback, and made it more elegant in movegolem --- checkmove.cpp | 8 -------- graph.cpp | 3 --- monstermove.cpp | 5 ++--- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/checkmove.cpp b/checkmove.cpp index 6843b619..eb2b6a92 100644 --- a/checkmove.cpp +++ b/checkmove.cpp @@ -200,8 +200,6 @@ EX bool monstersnear_aux() { changes.value_set(passive_switch, (gold() & 1) ? moSwitch1 : moSwitch2); multi::cpid++; bool b = false; - bool recorduse[ittypes]; - for(int i=0; i 1 && !multi::checkonly) return; if(hardcore) return; - bool orbusedbak[ittypes]; - // do not activate orbs! - for(int i=0; itype+1, false); move_issues.clear(); move_issues.resize(cwt.at->type, 0); @@ -356,7 +349,6 @@ EX void checkmove() { } items[itWarning]-=2; - for(int i=0; i