1.1 --- a/core/smn_vector.cpp Sat Oct 13 22:13:43 2007 +0000
1.2 +++ b/core/smn_vector.cpp Sun Oct 14 00:04:21 2007 +0000
1.3 @@ -31,7 +31,7 @@
1.4
1.5 #include "sm_globals.h"
1.6 #include <vector.h>
1.7 -#include <mathlib.h>
1.8 +#include <mathlib/math_base.h>
1.9
1.10 #define SET_VECTOR(addr, vec) \
1.11 addr[0] = sp_ftoc(vec.x); \
1.12 @@ -181,6 +181,16 @@
1.13 return sp_ftoc(length);
1.14 }
1.15
1.16 +//:TODO: OMG remove this when we get the OB SDK!!1
1.17 +// as well as bitbuf.cpp (i write it here just to remind it)
1.18 +#if defined ORANGEBOX_BUILD
1.19 +float ham(float _X)
1.20 +{
1.21 + return sqrt(_X);
1.22 +}
1.23 +float (*pfSqrt)(float x) = ham;
1.24 +#endif
1.25 +
1.26 REGISTER_NATIVES(vectorNatives)
1.27 {
1.28 {"GetAngleVectors", GetAngleVectors},