1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-13 17:06:52 +00:00

racing in bounded geometries

This commit is contained in:
Zeno Rogue 2019-09-28 14:19:29 +02:00
parent 7ed8e16974
commit 4a0f5dfb22

View File

@ -1294,6 +1294,7 @@ EX int get_percentage(int i) {
void draw_ghost_state(ghost& ghost) {
auto& p = get_ghostmoment(ghost);
if(p.where_id >= isize(rti)) return;
cell *w = rti[p.where_id].c;
ld result = ghost_finished(ghost) ? 100 : get_percentage(w);
draw_ghost_at(ghost, w, racerel(result), p);