1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 06:50:27 +00:00

solv:: fixed minemarks obscuring the view

This commit is contained in:
Zeno Rogue 2019-07-30 13:00:47 +02:00
parent d36bd6977b
commit 487f5a0d24

View File

@ -6009,10 +6009,14 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
firelimit++;
}
else if(c->wall == waMineOpen) {
int mines = countMinesAround(c);
if(mines >= 10)
queuepoly(face_the_player(V), cgi.shBigMineMark[0], darkena(minecolors[(mines/10)%10], 0, 0xFF));
queuepoly(face_the_player(V), cgi.shMineMark[0], darkena(minecolors[mines%10], 0, 0xFF));
if(pmodel == mdSolPerspective && hdist0(tC0(V)) < 1e-3) {
}
else {
int mines = countMinesAround(c);
if(mines >= 10)
queuepoly(face_the_player(V), cgi.shBigMineMark[0], darkena(minecolors[(mines/10)%10], 0, 0xFF));
queuepoly(face_the_player(V), cgi.shMineMark[0], darkena(minecolors[mines%10], 0, 0xFF));
}
}
else if(winf[c->wall].glyph == '.' || among(c->wall, waFloorA, waFloorB, waChasm, waLadder, waCanopy) || isWatery(c) || isSulphuric(c->wall)) ;