SCI: Slight change in GfxPicture::vectorFloodFill()

Changed bitwise XOR operations to bitwise NOT AND, to make the code a bit easier
to understand

svn-id: r52614
This commit is contained in:
Filippos Karapetis 2010-09-07 07:41:28 +00:00
parent c42e2f3a55
commit b2464a9bd1

View File

@ -853,11 +853,11 @@ void GfxPicture::vectorFloodFill(int16 x, int16 y, byte color, byte priority, by
// Now remove screens, that already got the right color/priority/control
if ((screenMask & GFX_SCREEN_MASK_VISUAL) && (searchColor == color))
screenMask ^= GFX_SCREEN_MASK_VISUAL;
screenMask &= ~GFX_SCREEN_MASK_VISUAL;
if ((screenMask & GFX_SCREEN_MASK_PRIORITY) && (searchPriority == priority))
screenMask ^= GFX_SCREEN_MASK_PRIORITY;
screenMask &= ~GFX_SCREEN_MASK_PRIORITY;
if ((screenMask & GFX_SCREEN_MASK_CONTROL) && (searchControl == control))
screenMask ^= GFX_SCREEN_MASK_CONTROL;
screenMask &= ~GFX_SCREEN_MASK_CONTROL;
// Exit, if no screens left
if (!screenMask)