1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-30 20:08:06 +00:00

rogueviz:: ads:: fixed a freeze when moving too fast -- although ads is still useless then

This commit is contained in:
Zeno Rogue
2025-09-07 12:49:56 +02:00
parent 0760b10454
commit 2526b5e95a
3 changed files with 4 additions and 0 deletions

View File

@@ -364,6 +364,7 @@ void view_ads_game() {
i++;
auto& cd = dq.top();
if(i > draw_per_frame && cd.d > lastd + 1e-4) break;
if(i > draw_per_frame + draw_per_frame_equal) break;
lastd = cd.d;
cds[cd.c] = cd;
draw_game_cell(cd);