add Draw_String to csqc

This commit is contained in:
Bill Currie 2002-01-20 00:03:34 +00:00
parent 60e1b2caf3
commit bb82e48ab1

View file

@ -51,8 +51,19 @@ bi_Draw_Pic (progs_t *pr)
Draw_Pic (x, y, pic);
}
static void
bi_Draw_String (progs_t *pr)
{
int x = G_INT (pr, OFS_PARM0);
int y = G_INT (pr, OFS_PARM1);
const char *text = G_STRING (pr, OFS_PARM2);
Draw_String (x, y, text);
}
void
R_Progs_Init (progs_t *pr)
{
PR_AddBuiltin (pr, "Draw_Pic", bi_Draw_Pic, -1);
PR_AddBuiltin (pr, "Draw_String", bi_Draw_String, -1);
}