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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user