mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-28 13:43:20 +00:00
fixed the name displayed on mouseover for slime
This commit is contained in:
parent
a6b30fa564
commit
364a563423
@ -2029,6 +2029,7 @@ void celldrawer::bookkeeping() {
|
|||||||
modist2 = modist; mouseover2 = mouseover;
|
modist2 = modist; mouseover2 = mouseover;
|
||||||
modist = dist;
|
modist = dist;
|
||||||
mouseover = c;
|
mouseover = c;
|
||||||
|
mouseoverV = V;
|
||||||
}
|
}
|
||||||
else if(dist < modist2) {
|
else if(dist < modist2) {
|
||||||
modist2 = dist;
|
modist2 = dist;
|
||||||
|
@ -67,6 +67,7 @@ EX ld shiftmul = 1;
|
|||||||
|
|
||||||
EX cell *mouseover, *mouseover2, *lmouseover, *lmouseover_distant;
|
EX cell *mouseover, *mouseover2, *lmouseover, *lmouseover_distant;
|
||||||
EX ld modist, modist2;
|
EX ld modist, modist2;
|
||||||
|
EX shiftmatrix mouseoverV;
|
||||||
|
|
||||||
EX int lastt;
|
EX int lastt;
|
||||||
|
|
||||||
|
7
help.cpp
7
help.cpp
@ -964,7 +964,12 @@ EX void describeMouseover() {
|
|||||||
if(c->wall && !(c->wall == waChasm && c->land == laDual && ctof(c)) &&
|
if(c->wall && !(c->wall == waChasm && c->land == laDual && ctof(c)) &&
|
||||||
!(c->land == laMemory) &&
|
!(c->land == laMemory) &&
|
||||||
!((c->wall == waFloorA || c->wall == waFloorB) && c->item)) {
|
!((c->wall == waFloorA || c->wall == waFloorB) && c->item)) {
|
||||||
out += ", "; out += XLAT1(winf[c->wall].name);
|
|
||||||
|
eWall w = c->wall;
|
||||||
|
if(isAlch(w))
|
||||||
|
w = conditional_flip_slime(mousing ? det(mouseoverV.T) < 0 : det(View) < 0, w);
|
||||||
|
|
||||||
|
out += ", "; out += XLAT1(winf[w].name);
|
||||||
|
|
||||||
if(c->wall == waRose) out += " (" + its(7-rosephase) + ")";
|
if(c->wall == waRose) out += " (" + its(7-rosephase) + ")";
|
||||||
if(c->wall == waTerraWarrior) out += " (" + its(c->wparam) + ")";
|
if(c->wall == waTerraWarrior) out += " (" + its(c->wparam) + ")";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user