From d1846f9325196a3b118e2b75fa14fc0c309f0263 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 9 May 2019 17:03:28 +0200 Subject: [PATCH] better cell-cursors; bad cell-cursors removed --- graph.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/graph.cpp b/graph.cpp index 6393c5fa..9d5e817b 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5779,6 +5779,17 @@ void queuecircleat(cell *c, double rad, color_t col) { } return; } + if(spatial_graphics || GDIM == 3) { + vector corners(c->type+1); + for(int i=0; itype; i++) corners[i] = gmatrix[c] * rgpushxto0(get_corner_position(c, i, 3 / rad)); + corners[c->type] = corners[0]; + for(int i=0; itype; i++) { + queueline(mscale(corners[i], geom3::FLOOR) * C0, mscale(corners[i+1], geom3::FLOOR) * C0, col, 2, PPR::SUPERLINE); + queueline(mscale(corners[i], geom3::WALL) * C0, mscale(corners[i+1], geom3::WALL) * C0, col, 2, PPR::SUPERLINE); + queueline(mscale(corners[i], geom3::FLOOR) * C0, mscale(corners[i], geom3::WALL) * C0, col, 2, PPR::SUPERLINE); + } + return; + } #if CAP_SHAPES if(vid.stereo_mode || sphere) { dynamicval p(poly_outline, col); @@ -5928,16 +5939,11 @@ void drawMarkers() { } } - if(DIM == 3 && !inHighQual && !shmup::on && vid.axes && playermoved) { + if(GDIM == 3 && !inHighQual && !shmup::on && vid.axes && playermoved) { cell *c = forwardcell(); IG(c) queuecircleat(c, .8, getcs().uicolor); } - if(DIM == 3 && !inHighQual && !playermoved) { - cell *c = mouseover; - IG(c) queuecircleat(c, .8, 0xFFFFFFFF); - } - #endif }