mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
racing in bounded geometries
This commit is contained in:
parent
7ed8e16974
commit
4a0f5dfb22
@ -1294,6 +1294,7 @@ EX int get_percentage(int i) {
|
|||||||
|
|
||||||
void draw_ghost_state(ghost& ghost) {
|
void draw_ghost_state(ghost& ghost) {
|
||||||
auto& p = get_ghostmoment(ghost);
|
auto& p = get_ghostmoment(ghost);
|
||||||
|
if(p.where_id >= isize(rti)) return;
|
||||||
cell *w = rti[p.where_id].c;
|
cell *w = rti[p.where_id].c;
|
||||||
ld result = ghost_finished(ghost) ? 100 : get_percentage(w);
|
ld result = ghost_finished(ghost) ? 100 : get_percentage(w);
|
||||||
draw_ghost_at(ghost, w, racerel(result), p);
|
draw_ghost_at(ghost, w, racerel(result), p);
|
||||||
|
Loading…
Reference in New Issue
Block a user