#include "game_types.h"

/* Sub_08004A10 @ 0x08004A10 (real 50B) -- conditional render dispatch on flag bits 1 and 0. Mirrors src/matched/Sub_08004A10.c. */
/* Renders the progress/score displays unless flag bit 1 is set, then the
   timer display unless flag bit 0 is set (flag word is at +40). */
extern void Level_ScrollHorizontal(int *p);
extern void Render_DrawScoreDisplay(int *p);
extern void Render_DrawTimerDisplay(int *p);

void Sub_08004A10(int *p)
{
    if ((p[10] & 2) == 0) {
        Level_ScrollHorizontal(p);
        Render_DrawScoreDisplay(p);
    }
    if ((p[10] & 1) == 0)
        Render_DrawTimerDisplay(p);
}
