From dc036e7c7bef163c0de3319b448bbbe712ccc445 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 10 May 2019 02:48:51 +0200 Subject: [PATCH] 2d3d:: seeps display --- graph.cpp | 4 ++-- polygons.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/graph.cpp b/graph.cpp index 4db154c3..0ad21197 100644 --- a/graph.cpp +++ b/graph.cpp @@ -1655,8 +1655,8 @@ bool drawMonsterType(eMonster m, cell *where, const transmatrix& V1, color_t col case moGhost: case moSeep: case moFriendlyGhost: { if(m == moFriendlyGhost) col = fghostcolor(where); - queuepoly(VGHOST, shGhost, darkena(col, 0, m == moFriendlyGhost ? 0xC0 : 0x80)); - queuepoly(VGHOST, shEyes, 0xFF); + queuepolyat(VGHOST, shGhost, darkena(col, 0, m == moFriendlyGhost ? 0xC0 : 0x80), DIM == 3 ? PPR::SUPERLINE : shGhost.prio); + queuepolyat(VGHOST, shEyes, 0xFF, DIM == 3 ? PPR::SUPERLINE : shEyes.prio); return false; } diff --git a/polygons.cpp b/polygons.cpp index bcc41f75..b3384c8d 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -662,7 +662,7 @@ void dqi_poly::gldraw() { if(draw) { if(flags & POLY_TRIANGLES) { glhr::color2(color); - glhr::set_depthtest(model_needs_depth()); + glhr::set_depthtest(model_needs_depth() && prio < PPR::SUPERLINE); glDrawArrays(GL_TRIANGLES, ioffset, cnt); } else {