1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-07 09:13:02 +00:00

rogueviz:: fixed a possible crash in Nil Rider planning mode

This commit is contained in:
Zeno Rogue
2025-09-07 12:37:43 +02:00
parent 54f9f864f0
commit 0760b10454

View File

@@ -224,9 +224,9 @@ void level::draw_planning_screen() {
current_surface = hi.on_surface;
curvepoint(hpxy(h[0], h[1]));
}
i++; if(i < isize(history)) i = min(i + plan_precision - 1, isize(history)-1);
ld dist = sqhypot_d(2, h - mousept);
if(dist < closest_dist) closest_dist = dist, current = history[i];
i++; if(i < isize(history)) i = min(i + plan_precision - 1, isize(history)-1);
}
queuecurve(T, surface_color(), 0, PPR::LIZEYE);
vid.linewidth /= 3;