1.1 --- a/core/smn_vector.cpp Sun Feb 10 01:19:34 2008 +0000
1.2 +++ b/core/smn_vector.cpp Wed Feb 20 07:56:33 2008 +0000
1.3 @@ -31,7 +31,11 @@
1.4
1.5 #include "sm_globals.h"
1.6 #include <vector.h>
1.7 -#include <mathlib/math_base.h>
1.8 +#if defined ORANGEBOX_BUILD
1.9 +#include <mathlib.h>
1.10 +#else
1.11 +#include <math_base.h>
1.12 +#endif
1.13
1.14 #define SET_VECTOR(addr, vec) \
1.15 addr[0] = sp_ftoc(vec.x); \
1.16 @@ -181,16 +185,6 @@
1.17 return sp_ftoc(length);
1.18 }
1.19
1.20 -//:TODO: OMG remove this when we get the OB SDK!!1
1.21 -// as well as bitbuf.cpp (i write it here just to remind it)
1.22 -#if defined ORANGEBOX_BUILD && !defined __linux__
1.23 -float ham(float _X)
1.24 -{
1.25 - return sqrt(_X);
1.26 -}
1.27 -float (*pfSqrt)(float x) = ham;
1.28 -#endif
1.29 -
1.30 REGISTER_NATIVES(vectorNatives)
1.31 {
1.32 {"GetAngleVectors", GetAngleVectors},