engine: client: fixed TriWorldToScreen behavior to match GoldSrc

This commit is contained in:
SNMetamorph 2022-04-12 13:06:14 +04:00 committed by a1batross
parent 81c4acab66
commit 9c85d114e7
1 changed files with 1 additions and 10 deletions

View File

@ -3178,16 +3178,7 @@ convert world coordinates (x,y,z) into screen (x, y)
*/
int TriWorldToScreen( const float *world, float *screen )
{
int retval;
retval = ref.dllFuncs.WorldToScreen( world, screen );
screen[0] = 0.5f * screen[0] * (float)clgame.viewport[2];
screen[1] = -0.5f * screen[1] * (float)clgame.viewport[3];
screen[0] += 0.5f * (float)clgame.viewport[2];
screen[1] += 0.5f * (float)clgame.viewport[3];
return retval;
return ref.dllFuncs.WorldToScreen( world, screen );
}
/*