router: fix compile error in DRAGGER

This commit is contained in:
Tomasz Wlostowski 2021-02-12 00:14:39 +01:00
parent b67e5768a6
commit 2831c7d24c
1 changed files with 3 additions and 2 deletions

View File

@ -405,8 +405,8 @@ void DRAGGER::optimizeAndUpdateDraggedLine( LINE& aDragged, const LINE& aOrig, c
//Dbg()->AddBox( *affectedArea, 2 ); //Dbg()->AddBox( *affectedArea, 2 );
optimizer.SetRestrictArea( *affectedArea ); optimizer.SetRestrictArea( *affectedArea );
optimizer.Optimize( &aDragged ); optimizer.Optimize( &aDragged );
}
OPT_BOX2I optArea = *aDragged.ChangedArea( &aOrig ); OPT_BOX2I optArea = *aDragged.ChangedArea( &aOrig );
if( optArea ) if( optArea )
@ -497,6 +497,7 @@ bool DRAGGER::dragWalkaround( const VECTOR2I& aP )
if( ok ) if( ok )
{ {
//Dbg()->AddLine( origLine.CLine(), 4, 100000 );
m_lastNode->Remove( origLine ); m_lastNode->Remove( origLine );
optimizeAndUpdateDraggedLine( draggedWalk, origLine, aP ); optimizeAndUpdateDraggedLine( draggedWalk, origLine, aP );
} }