Added drawpic hack so that the engine doesn't shoddily attempt to draw images with floating point coords
This commit is contained in:
parent
f8b8bb18f7
commit
0c1ba0978e
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue