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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user