1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-18 06:30:41 +00:00

relhell:: ads:: do not flicker tiles in case of ties

This commit is contained in:
Zeno Rogue 2024-10-01 15:12:55 +02:00
parent 91becce046
commit c4fc004916

View File

@ -320,10 +320,14 @@ void view_ads_game() {
});
int i = 0;
ld lastd = -10;
while(!dq.empty()) {
i++; if(i > draw_per_frame) break;
i++;
auto& cd = dq.top();
if(i > draw_per_frame && cd.d > lastd + 1e-4) break;
lastd = cd.d;
cds[cd.c] = cd;
draw_game_cell(cd);