mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 07:30:26 +00:00
rulegen:: do not repeat importants
This commit is contained in:
parent
153a639337
commit
25aa5d62e1
12
rulegen.cpp
12
rulegen.cpp
@ -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();
|
||||||
important.push_back(tw.at);
|
if(!treestates[co.second].known) {
|
||||||
important.push_back(tw.cpeek());
|
treestates[co.second].known = true;
|
||||||
if(debugflags & DF_GEOM)
|
important.push_back(tw.at);
|
||||||
println(hlog, "expected ", make_pair((tw+wstep).spin,id), " found ", co);
|
if(debugflags & DF_GEOM)
|
||||||
|
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