diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-23 20:24:40 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-23 20:24:40 +1000 |
commit | e64aabfcf1237639fa5d53ed7e02c3a6510f4a0c (patch) | |
tree | c319339d75266ecd2083d3cbfcbe972648b668e1 /source/frontend/StarChatBubbleSeparation.hpp | |
parent | 01356293019e77ccaadd636b1c4d62733db419b0 (diff) |
add Nametag Directives
Diffstat (limited to 'source/frontend/StarChatBubbleSeparation.hpp')
-rw-r--r-- | source/frontend/StarChatBubbleSeparation.hpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/frontend/StarChatBubbleSeparation.hpp b/source/frontend/StarChatBubbleSeparation.hpp index d3a2bdc..88a860c 100644 --- a/source/frontend/StarChatBubbleSeparation.hpp +++ b/source/frontend/StarChatBubbleSeparation.hpp @@ -139,13 +139,11 @@ void BubbleSeparator<T>::forEach(function<void(Bubble&, T&)> func) { RectF boundBox = bubble.boundBox.translated(positionDelta); RectF separated = separateBubble(m_sortedLeftEdges, m_sortedRightEdges, boundBox); anyMoved = true; - bubble = Bubble{bubble.contents, - bubble.idealDestination, - bubble.idealDestination, - boundBox, - bubble.idealDestination + separated.min() - boundBox.min(), - separated, - bubble.currentPosition + positionDelta}; + bubble.currentDestination = bubble.idealDestination; + bubble.boundBox = boundBox; + bubble.separatedPosition = bubble.idealDestination + separated.min() - boundBox.min(); + bubble.separatedBox = separated; + bubble.currentPosition += positionDelta; } }); if (anyMoved) |