Added drawpic hack so that the engine doesn't shoddily attempt to draw images with floating point coords

This commit is contained in:
Marco Cawthorne 2020-08-14 23:18:47 +02:00
parent f8b8bb18f7
commit 0c1ba0978e

View file

@ -90,3 +90,14 @@ void View_SetMuzzleflash(int);
void View_PlayAnimation(int);
void View_PlayAnimation(int);
void Sound_PlayVOX(string);
/* this really should be done in-engine */
__wrap float(vector pos, string pic, vector size, vector rgb, float alpha, optional float drawflag) drawpic =
{
return prior([(int)pos[0],(int)pos[1]], pic, size, rgb, alpha, drawflag);
};
__wrap void(vector pos, vector sz, string pic, vector srcpos, vector srcsz, vector rgb, float alpha, optional float drawflag) drawsubpic =
{
return prior([(int)pos[0],(int)pos[1]], sz, pic, srcpos, srcsz, rgb, alpha, drawflag);
};