mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
public: fix warnings, add guards around some of the macros, remove unused variable
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
|
||||
int main( void )
|
||||
{
|
||||
int res;
|
||||
|
||||
if( Q_buildnum_compat() != 4529 )
|
||||
return 200;
|
||||
|
||||
|
||||
@@ -46,8 +46,12 @@ CONSTANTS AND HELPER MACROS
|
||||
#define M_PI_F ((float)(M_PI))
|
||||
#define M_PI2_F ((float)(M_PI2))
|
||||
|
||||
#ifndef RAD2DEG
|
||||
#define RAD2DEG( x ) ((double)(x) * (double)(180.0 / M_PI))
|
||||
#endif
|
||||
#ifndef DEG2RAD
|
||||
#define DEG2RAD( x ) ((double)(x) * (double)(M_PI / 180.0))
|
||||
#endif
|
||||
|
||||
#define NUMVERTEXNORMALS 162
|
||||
|
||||
@@ -74,8 +78,12 @@ CONSTANTS AND HELPER MACROS
|
||||
#define INV255F ( 1.0f / 255.0f )
|
||||
#define MAKE_SIGNED( x ) ((( x ) * INV127F ) - 1.0f )
|
||||
|
||||
#ifndef Q_min
|
||||
#define Q_min( a, b ) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
#ifndef Q_max
|
||||
#define Q_max( a, b ) (((a) > (b)) ? (a) : (b))
|
||||
#endif
|
||||
#define Q_equal_e( a, b, e ) (((a) >= ((b) - (e))) && ((a) <= ((b) + (e))))
|
||||
#define Q_equal( a, b ) Q_equal_e( a, b, EQUAL_EPSILON )
|
||||
#define Q_floor( a ) ((float)(int)(a))
|
||||
|
||||
Reference in New Issue
Block a user