#include "game_types.h"

/* Script_ReadU8_25 @ 0x0801372C (real 18B) -- advances cursor, stores byte to field 25, redraws region if 0. Mirrors src/matched/Script_ReadU8_25.c. */
/* Advances the script cursor, stores the byte into field 25, and redraws
   the image region when the byte is 0. */
extern unsigned Script_IncrementOffset(char *st);
extern void Image_DrawRegion(int a, char *p);

void Script_ReadU8_25(int a, char *st)
{
    unsigned b = Script_IncrementOffset(st);
    st[25] = (char)b;
    if (b == 0)
        Image_DrawRegion(a, st);
}
