Yendor marker displays an approximate if celldistance returns DISTANCE_UNKNOWN

This commit is contained in:
Zeno Rogue 2019-08-02 22:09:45 +02:00
parent 40e5f7f930
commit 01647a34cf
1 changed files with 9 additions and 1 deletions

View File

@ -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);
}