diff --git a/rulegen.cpp b/rulegen.cpp index b88e34ae..f5235831 100644 --- a/rulegen.cpp +++ b/rulegen.cpp @@ -749,7 +749,7 @@ EX void look_for_shortcuts(tcell *c, shortcut& sh) { for(auto it = sh.post.rbegin(); it != sh.post.rend(); it++) { auto& v = *it; - if(tw.at->dist >= expected_dist && !tw.peek() && !(flags & w_less_smart_advance)) return; + if(tw.at->dist > expected_dist && !tw.peek() && !(flags & w_less_smart_advance)) return; ufind(tw); tw += wstep; calc_distances(tw.at);