From 9f88c6b81c41b6b7dd746e037a70206bbeea8eec Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 3 Jan 2019 03:20:20 +0100 Subject: [PATCH] graphical display of the paths for Orb of Air --- graph.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/graph.cpp b/graph.cpp index 4a70dc98..55b9c028 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5164,6 +5164,20 @@ void drawMarkers() { drawParticles(mouseover, iinf[orbToTarget].color, 2); } } + if(items[itOrbAir] && mouseover->cpdist > 1) { + cell *c1 = mouseover; + for(int it=0; it<10; it++) { + int di; + cell *c2 = blowoff_destination(c1, di); + if(!c2) break; + transmatrix T1 = ggmatrix(c1); + transmatrix T2 = ggmatrix(c2); + transmatrix T = T1 * rspintox(inverse(T1)*T2*C0) * xpush(hdist(T1*C0, T2*C0) * fractick(50, 0)); + color_t aircol = (orbToTarget == itOrbAir ? 0x8080FF40 : 0x8080FF20); + queuepoly(T, shDisk, aircol); + c1 = c2; + } + } } }