1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-28 04:17:39 +00:00

rogueviz:: ads:: ship_history_period

This commit is contained in:
Zeno Rogue
2025-06-22 16:03:07 +02:00
parent 039f1fba29
commit 2b8b24e3f5
4 changed files with 15 additions and 1 deletions

View File

@@ -190,8 +190,12 @@ void draw_game_cell(const cell_to_draw& cd) {
if(rock.type != oParticle) view_time(shiftless(rgpushxto0(rock.pt_main.h)), rock.pt_main.shift, 0xFFFFFF);
}
ld last_shown = -HUGE_VAL;
if(paused || which_cross) if(hv) for(auto& rock: ci.shipstates) {
if(rock.start < last_shown + ship_history_period) continue;
last_shown = rock.start;
render_ship_parts([&] (const hpcshape& sh, color_t col, int sym) {
int dx = sym ? -1 : 1;
for(int i=sh.s; i<sh.e; i++) {