[saco] Implement and match FloatOffset(...)

This commit is contained in:
RD42 2024-05-06 22:34:58 +08:00
parent 4643d1ff97
commit 46405f9dc1
2 changed files with 9 additions and 0 deletions

View File

@ -1496,6 +1496,14 @@ float FloatDifference(float f1, float f2)
return f1 - f2;
}
//-----------------------------------------------------------
float FloatOffset(float f1, float f2)
{
if(f1 >= f2) return f1 - f2;
else return (f2 - f1);
}
float DegToRad(float fDegrees)
{
if (fDegrees > 360.0f || fDegrees < 0.0f) return 0.0f;

View File

@ -7,6 +7,7 @@ void ProcessLineOfSight(VECTOR *vecOrigin, VECTOR *vecLine, VECTOR *colPoint,
int bIgnoreSomeObjectsForCamera, int bUnk1);
float FloatDifference(float f1, float f2);
float FloatOffset(float f1, float f2);
void __stdcall SetRadarColor(int nIndex,DWORD dwColor);