1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

removed sub_status -- unused in the current branchtester

This commit is contained in:
Zeno Rogue 2021-08-17 17:15:11 +02:00
parent 5c95359763
commit 4c3800f2b4

View File

@ -719,7 +719,6 @@ struct treestate {
int id;
bool known;
vector<int> rules;
vector<int> sub_status; // 1 if DIR_LEFT or DIR_RIGHT and connected to a child
twalker giver;
int sid;
int parent_dir;
@ -1251,22 +1250,6 @@ void find_single_live_branch(twalker at) {
}
}
void find_sub_status() {
for(int id=0; id<isize(treestates); id++)
treestates[id].sub_status.resize(isize(treestates[id].rules), 0);
for(int id=0; id<isize(treestates); id++) {
auto& ts = treestates[id];
for(int im=0; im<isize(ts.rules); im++)
if(ts.rules[im] >= 0 || ts.rules[im] == DIR_PARENT)
for(int i=0; i<isize(ts.rules); i++) if(i != im) {
if((ts.giver+im).peek() == (ts.giver+i).peek()) {
ts.sub_status[i] = 1;
}
}
}
}
void rules_iteration() {
clear_codes();
@ -1341,8 +1324,6 @@ void rules_iteration() {
int q = isize(single_live_branch_close_to_root);
find_sub_status();
for(int id=0; id<isize(treestates); id++) if(treestates[id].is_live) {
auto& r = treestates[id].rules;
int last_live_branch = -1;