mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-09 17:00:34 +00:00
rulegen:: just call rules_iteration_for for unknown states, no need to restart
This commit is contained in:
parent
d7f40b8cdb
commit
c58f12cfc6
10
rulegen.cpp
10
rulegen.cpp
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user