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

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

View File

@ -1489,6 +1489,13 @@ BOOL __stdcall IsATrainPart(ENTITY_TYPE *pEntity)
return FALSE;
}
//-----------------------------------------------------------
float FloatDifference(float f1, float f2)
{
return f1 - f2;
}
float DegToRad(float fDegrees)
{
if (fDegrees > 360.0f || fDegrees < 0.0f) return 0.0f;

View File

@ -6,6 +6,8 @@ void ProcessLineOfSight(VECTOR *vecOrigin, VECTOR *vecLine, VECTOR *colPoint,
int bCheckObjects, int bCheckDummies, int bSeeThroughStuff,
int bIgnoreSomeObjectsForCamera, int bUnk1);
float FloatDifference(float f1, float f2);
void __stdcall SetRadarColor(int nIndex,DWORD dwColor);
void __stdcall WorldRemoveEntity(DWORD *dwEnt);