1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

fixed >= to > in smart shortcut

This commit is contained in:
Zeno Rogue 2021-12-25 01:36:44 +01:00
parent 99486bfc3c
commit d1ed0ab779

View File

@ -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);