mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement and match FloatOffset(...)
This commit is contained in:
parent
4643d1ff97
commit
46405f9dc1
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user