Fix shadowing fix that caused logic bug and different shadowing
This commit is contained in:
parent
77ed62f506
commit
cd7a2cd807
|
@ -207,10 +207,10 @@ static void insideCourtyard( LIBEVAL::CONTEXT* aCtx, void* self )
|
||||||
if( i != board->m_InsideCourtyardCache.end() )
|
if( i != board->m_InsideCourtyardCache.end() )
|
||||||
return i->second;
|
return i->second;
|
||||||
|
|
||||||
bool insideFootprint = realInsideFootprint( footprint );
|
bool isInside = realInsideFootprint( footprint );
|
||||||
|
|
||||||
board->m_InsideCourtyardCache[ key ] = result;
|
board->m_InsideCourtyardCache[ key ] = isInside;
|
||||||
return insideFootprint;
|
return isInside;
|
||||||
};
|
};
|
||||||
|
|
||||||
if( arg->AsString() == "A" )
|
if( arg->AsString() == "A" )
|
||||||
|
@ -388,10 +388,10 @@ static void insideArea( LIBEVAL::CONTEXT* aCtx, void* self )
|
||||||
if( i != board->m_InsideAreaCache.end() )
|
if( i != board->m_InsideAreaCache.end() )
|
||||||
return i->second;
|
return i->second;
|
||||||
|
|
||||||
bool result = realInsideZone( zone );
|
bool isInside = realInsideZone( zone );
|
||||||
|
|
||||||
board->m_InsideAreaCache[ key ] = result;
|
board->m_InsideAreaCache[ key ] = isInside;
|
||||||
return result;
|
return isInside;
|
||||||
};
|
};
|
||||||
|
|
||||||
if( arg->AsString() == "A" )
|
if( arg->AsString() == "A" )
|
||||||
|
|
Loading…
Reference in New Issue