mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-28 22:10:40 +00:00
rogueviz:: fixed label positioning in 3D
This commit is contained in:
parent
edbf08b80c
commit
fcd9fbbcd2
@ -1329,7 +1329,7 @@ bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hyperpoint h = tC0(V * m->at);
|
hyperpoint h = tC0(V * m->at);
|
||||||
transmatrix V2 = DIM == 3 ? V : rgpushxto0(h) * ypush(PURE ? .3 : .2); // todo-variation
|
transmatrix V2 = DIM == 3 ? V * m->at : rgpushxto0(h) * ypush(PURE ? .3 : .2); // todo-variation
|
||||||
if(doshow && !behindsphere(V2)) {
|
if(doshow && !behindsphere(V2)) {
|
||||||
auto info = vd.info;
|
auto info = vd.info;
|
||||||
if(info) queueaction(PPR::MONSTER_HEAD, [info] () { svg::link = *info; });
|
if(info) queueaction(PPR::MONSTER_HEAD, [info] () { svg::link = *info; });
|
||||||
|
Loading…
Reference in New Issue
Block a user