#include "game_types.h"

/* Emitter_DrawFixedAngle @ 0x08004D18 (real 106B) -- fixed-angle draw (mode 4). Mirrors src/matched/Emitter_DrawFixedAngle.c. */
/* Same delta math as DrawDirectional; the x-delta result is computed then
   dropped (dead), and Emitter_DrawAt takes (base, p+53, p[40], 159-ny, 4). */
extern void Emitter_DrawAt(int *base, int *q, int x, int y, int mode);

void Emitter_DrawFixedAngle(int *p)
{
    int *base = *(int **)0x02000134;
    int *tab = *(int **)0x0200005C + 416 / 4;
    int ny = p[29] - ((tab[1] >> 12) - (tab[20] / 2));
    (void)(p[28] - ((tab[0] >> 12) - (tab[19] / 2)));
    Emitter_DrawAt(base, p + 53, p[40], 159 - ny, 4);
}
