1
0
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:
Zeno Rogue 2021-08-20 00:46:22 +02:00
parent 153a639337
commit 25aa5d62e1

View File

@ -1198,10 +1198,14 @@ void verified_treewalk(twalker& tw, int id, int dir) {
auto co = get_code(tw.cpeek());
if(co.second != id || co.first != (tw+wstep).spin) {
handle_distance_errors();
if(!treestates[co.second].known) {
treestates[co.second].known = true;
important.push_back(tw.at);
important.push_back(tw.cpeek());
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};
throw verify_advance_failed();
}