1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-18 03:04:48 +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++; firelimit++;
} }
else if(c->wall == waMineOpen) { else if(c->wall == waMineOpen) {
int mines = countMinesAround(c); if(pmodel == mdSolPerspective && hdist0(tC0(V)) < 1e-3) {
if(mines >= 10) }
queuepoly(face_the_player(V), cgi.shBigMineMark[0], darkena(minecolors[(mines/10)%10], 0, 0xFF)); else {
queuepoly(face_the_player(V), cgi.shMineMark[0], darkena(minecolors[mines%10], 0, 0xFF)); 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)) ; else if(winf[c->wall].glyph == '.' || among(c->wall, waFloorA, waFloorB, waChasm, waLadder, waCanopy) || isWatery(c) || isSulphuric(c->wall)) ;