mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-04 15:53:00 +00:00
relhell:: ads:: do not flicker tiles in case of ties
This commit is contained in:
@@ -320,10 +320,14 @@ void view_ads_game() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
ld lastd = -10;
|
||||||
|
|
||||||
while(!dq.empty()) {
|
while(!dq.empty()) {
|
||||||
|
|
||||||
i++; if(i > draw_per_frame) break;
|
i++;
|
||||||
auto& cd = dq.top();
|
auto& cd = dq.top();
|
||||||
|
if(i > draw_per_frame && cd.d > lastd + 1e-4) break;
|
||||||
|
lastd = cd.d;
|
||||||
cds[cd.c] = cd;
|
cds[cd.c] = cd;
|
||||||
draw_game_cell(cd);
|
draw_game_cell(cd);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user