mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
rulegen:: do not repeat importants
This commit is contained in:
parent
153a639337
commit
25aa5d62e1
@ -1198,10 +1198,14 @@ void verified_treewalk(twalker& tw, int id, int dir) {
|
|||||||
auto co = get_code(tw.cpeek());
|
auto co = get_code(tw.cpeek());
|
||||||
if(co.second != id || co.first != (tw+wstep).spin) {
|
if(co.second != id || co.first != (tw+wstep).spin) {
|
||||||
handle_distance_errors();
|
handle_distance_errors();
|
||||||
|
if(!treestates[co.second].known) {
|
||||||
|
treestates[co.second].known = true;
|
||||||
important.push_back(tw.at);
|
important.push_back(tw.at);
|
||||||
important.push_back(tw.cpeek());
|
|
||||||
if(debugflags & DF_GEOM)
|
if(debugflags & DF_GEOM)
|
||||||
println(hlog, "expected ", make_pair((tw+wstep).spin,id), " found ", co);
|
println(hlog, "expected ", make_pair((tw+wstep).spin,id), " found ", co);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
println(hlog, "expected ", make_pair((tw+wstep).spin,id), " found ", co, " again");
|
||||||
debuglist = {tw, tw+wstep};
|
debuglist = {tw, tw+wstep};
|
||||||
throw verify_advance_failed();
|
throw verify_advance_failed();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user