1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

rulegen:: just call rules_iteration_for for unknown states, no need to restart

This commit is contained in:
Zeno Rogue 2021-08-19 13:17:56 +02:00
parent d7f40b8cdb
commit c58f12cfc6

View File

@ -1342,19 +1342,15 @@ EX void rules_iteration() {
if(debugflags & DF_GEOM)
println(hlog, "rule_root = ", rule_root);
int N = isize(important);
for(int id=0; id<isize(treestates); id++) {
if(!treestates[id].known) {
important.push_back(treestates[id].where_seen);
if(debugflags & DF_GEOM)
println(hlog, "no rule found for ", id);
auto ws = treestates[id].where_seen;
rules_iteration_for(ws);
continue;
}
}
if(isize(important) != N)
throw mismatch_error();
int N = isize(important);
int new_deadends = -1;