Fix copy-paste error in PNS mouse trail tracer
And also fix indentation of control flow.
This commit is contained in:
parent
0e9cfd0af2
commit
f744ddd11d
|
@ -154,7 +154,7 @@ DIRECTION_45 MOUSE_TRAIL_TRACER::GetPosture( const VECTOR2I& aP )
|
||||||
|
|
||||||
if( trail.Area() > areaCutoff )
|
if( trail.Area() > areaCutoff )
|
||||||
areaOk = true;
|
areaOk = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
DIRECTION_45 straightDirection;
|
DIRECTION_45 straightDirection;
|
||||||
DIRECTION_45 diagDirection;
|
DIRECTION_45 diagDirection;
|
||||||
|
@ -197,7 +197,7 @@ DIRECTION_45 MOUSE_TRAIL_TRACER::GetPosture( const VECTOR2I& aP )
|
||||||
}
|
}
|
||||||
else if( diagDirection == m_lastSegDirection )
|
else if( diagDirection == m_lastSegDirection )
|
||||||
{
|
{
|
||||||
if( m_direction != straightDirection )
|
if( m_direction != diagDirection )
|
||||||
{
|
{
|
||||||
PNS_DBG( dbg, Message, wxString::Format( "Posture: forcing diagonal => %s",
|
PNS_DBG( dbg, Message, wxString::Format( "Posture: forcing diagonal => %s",
|
||||||
diagDirection.Format() ) );
|
diagDirection.Format() ) );
|
||||||
|
|
Loading…
Reference in New Issue