1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 05:17:17 +00:00

2d3d:: seeps display

This commit is contained in:
Zeno Rogue 2019-05-10 02:48:51 +02:00
parent b712bbb444
commit dc036e7c7b
2 changed files with 3 additions and 3 deletions

View File

@ -1655,8 +1655,8 @@ bool drawMonsterType(eMonster m, cell *where, const transmatrix& V1, color_t col
case moGhost: case moSeep: case moFriendlyGhost: { case moGhost: case moSeep: case moFriendlyGhost: {
if(m == moFriendlyGhost) col = fghostcolor(where); if(m == moFriendlyGhost) col = fghostcolor(where);
queuepoly(VGHOST, shGhost, darkena(col, 0, m == moFriendlyGhost ? 0xC0 : 0x80)); queuepolyat(VGHOST, shGhost, darkena(col, 0, m == moFriendlyGhost ? 0xC0 : 0x80), DIM == 3 ? PPR::SUPERLINE : shGhost.prio);
queuepoly(VGHOST, shEyes, 0xFF); queuepolyat(VGHOST, shEyes, 0xFF, DIM == 3 ? PPR::SUPERLINE : shEyes.prio);
return false; return false;
} }

View File

@ -662,7 +662,7 @@ void dqi_poly::gldraw() {
if(draw) { if(draw) {
if(flags & POLY_TRIANGLES) { if(flags & POLY_TRIANGLES) {
glhr::color2(color); glhr::color2(color);
glhr::set_depthtest(model_needs_depth()); glhr::set_depthtest(model_needs_depth() && prio < PPR::SUPERLINE);
glDrawArrays(GL_TRIANGLES, ioffset, cnt); glDrawArrays(GL_TRIANGLES, ioffset, cnt);
} }
else { else {