Merge branch '56-message-bubble-is-very-high-on-fh-alarm-plants' into 'main/gingo-test'

Resolve "Message bubble is very high on FH alarm plants"

See merge request ryzom/ryzom-core!45
55-remove-chat-replies-shortcuts
Nuno Gonçalves (Ulukyn) 3 years ago
commit d385dedabc

@ -6274,6 +6274,11 @@ void CCharacterCL::updateVisiblePostPos(const NLMISC::TTime &currentTimeInMs, CE
pos = (box().getMin() + box().getMax())/2;
pos.z = box().getMax().z;
}
CRaceStatsSheet *sheet = const_cast<CRaceStatsSheet*>(UserEntity->playerSheet());
float namePosZ = sheet->GenderInfos[UserEntity->getGender()].NamePosZNormal;
if (pos.z > box().getMin().z + namePosZ)
pos.z = box().getMin().z + namePosZ;
nlassert(isValidDouble(pos.x) && isValidDouble(pos.y) && isValidDouble(pos.z));
_CurrentBubble->Position = pos;
}

Loading…
Cancel
Save