1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-15 05:07:16 +00:00

labels are no longer displayed behind the sphere

This commit is contained in:
Zeno Rogue
2018-04-22 11:11:47 +02:00
parent b5a84e9a4b
commit ff9051426a
3 changed files with 6 additions and 3 deletions

View File

@@ -3668,7 +3668,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
queuestr(V, 1 * .2, label, 0xFFFFFFFF, 1);
}
if(viewdists) {
if(viewdists && !behindsphere(V)) {
int cd = (cwt.c == currentmap->gamestart() && numplayers() == 1) ? celldist(c) : celldistance(c, cwt.c);
string label = its(cd);
// string label = its(fieldpattern::getriverdistleft(c)) + its(fieldpattern::getriverdistright(c));