Update belt drag L-path immediately on rotate

This commit is contained in:
2026-07-21 21:06:54 +02:00
parent b2c1ea34fd
commit 0c4eb480be
2 changed files with 4 additions and 0 deletions

View File

@@ -2531,6 +2531,9 @@ void GameWorldView::rotateGhost(bool clockwise)
m_ghostRotation = clockwise ? rotateClockwise(m_ghostRotation)
: rotateCounterClockwise(m_ghostRotation);
m_ghostValid = isValidPlacement(*m_builderType, m_ghostTile, m_ghostRotation);
// Rotating during a belt drag re-picks the path's primary axis immediately,
// without waiting for the next mouse move (REQ-BLD-BELT-DRAG).
if (m_dragging) { recomputeBeltDragPath(m_ghostTile); }
}
else if (m_blueprintMode.has_value())
{