From 01647a34cf296dc02fce041a970ad8011ac0428c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 2 Aug 2019 22:09:45 +0200 Subject: [PATCH] Yendor marker displays an approximate if celldistance returns DISTANCE_UNKNOWN --- graph.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 3e229120..0940561f 100644 --- a/graph.cpp +++ b/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