fix(ui): correct logic in CFramePoint ctor

This commit is contained in:
fallenoak 2025-12-02 20:27:11 -06:00
parent 0fe67635eb
commit fd01435140
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -7,14 +7,9 @@ const float CFramePoint::UNDEFINED = 3.4028237e38;
CFramePoint::CFramePoint(CLayoutFrame* relative, FRAMEPOINT framePoint, float offsetX, float offsetY) {
STORM_ASSERT(relative != nullptr && framePoint != FRAMEPOINT_NUMPOINTS);
this->m_offset = { offsetX, offsetY };
this->m_framePoint = framePoint;
this->m_relative = relative;
this->m_flags = 0x0;
// TODO
// - this doesn't appear to be zeroed out
// - what is it actually checking?
this->m_flags = (this->m_flags & 0x2) >= 1 ? 0x6 : 0;
this->SetRelative(relative, framePoint, offsetX, offsetY);
}
CLayoutFrame* CFramePoint::GetRelative() {