mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
Yendor marker displays an approximate if celldistance returns DISTANCE_UNKNOWN
This commit is contained in:
parent
40e5f7f930
commit
01647a34cf
10
graph.cpp
10
graph.cpp
@ -6871,7 +6871,15 @@ void drawMarkers() {
|
||||
hyperpoint H = tC0(ggmatrix(keycell));
|
||||
#if CAP_QUEUE
|
||||
queuechr(H, 2*vid.fsize, 'X', 0x10101 * int(128 + 100 * sintick(150)));
|
||||
queuestr(H, vid.fsize, its(celldistance(yi[yii].key(), cwt.at)), 0x10101 * int(128 - 100 * sintick(150)));
|
||||
int cd = celldistance(yi[yii].key(), cwt.at);
|
||||
if(cd == DISTANCE_UNKNOWN) for(int i2 = 0; i2<YDIST; i2++) {
|
||||
int cd2 = celldistance(cwt.at, yi[yii].path[i2]);
|
||||
if(cd2 != DISTANCE_UNKNOWN) {
|
||||
cd = cd2 + (YDIST-1-i2);
|
||||
println(hlog, "i2 = ", i2, " cd = ", celldistance(cwt.at, keycell));
|
||||
}
|
||||
}
|
||||
queuestr(H, vid.fsize, its(cd), 0x10101 * int(128 - 100 * sintick(150)));
|
||||
#endif
|
||||
addauraspecial(H, iinf[itOrbYendor].color, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user