mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix #9971: Don't assert that time moves forward
This commit is contained in:
parent
4253db28fa
commit
5a0dd7e322
@ -965,7 +965,7 @@ struct FrametimeGraphWindow : Window {
|
||||
(int)Scinterlate<int64>(x_zero, x_max, 0, (int64)draw_horz_scale, (int64)draw_horz_scale - (int64)time_sum),
|
||||
(int)Scinterlate<int64>(y_zero, y_max, 0, (int64)draw_vert_scale, (int64)value)
|
||||
};
|
||||
assert(newpoint.x <= lastpoint.x);
|
||||
if (newpoint.x > lastpoint.x) continue; // don't draw backwards
|
||||
GfxDrawLine(lastpoint.x, lastpoint.y, newpoint.x, newpoint.y, c_lines);
|
||||
lastpoint = newpoint;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user