#include "game_types.h"

/* Image_DrawRegion @ 0x08013704 (real 26B) -- clears region flags then ORs in 12 or 3. Mirrors src/matched/Image_DrawRegion.c. */
/* Clears bytes 22/26 of the region, then ORs 12 (flag 24 clear) or 3 into
   byte 0. */
void Image_DrawRegion(int unused, char *p)
{
    int n;
    (void)unused;
    p[22] = 0;
    p[26] = 0;
    n = p[24] == 0 ? 12 : 3;
    p[0] = (char)(p[0] | n);
}
