View Single Post
Old 02-20-2009, 05:56 AM   #4
BobaFettUU
Lurker
 
Join Date: Feb 2006
Posts: 6
Quote:
Next we need to remove all the win32 folders from our solution.
There isn't any need to remove the win32 folders, all they contain is the resource file which contains the version information of the dll's (which you'll see when you check the properties of the dll)

Another fix for powf is this:

Find:
Quote:
float powf ( float x, int y )
{
float r = x;
for ( y--; y>0; y-- )
r = r * r;
return r;
}
and replace it with:

Quote:
float Q_powf ( float x, int y )
{
float r = x;
for ( y--; y>0; y-- )
r = r * r;
return r;
}
Now a lil info about this powf thing: This is the power of function (ya know.. 2^4 = 2*2*2*2 = 16)

Issue is that the powf that comes with JA's SDK is a simplified and broken version of it, only accepting integer exponents above 0. <math.h> which is part of the C standard library, has a properly functioning powf, which is where you get a name clash.

Now powf is only used for the third person camera interpolation. Results of using the SDK's powf is a stiff and rough camera motion, using the real powf results in a smoothened and interpolated camera motion. So this is just a matter of what you prefer, or better yet, make a cvar to toggle between the real powf and the Q_powf.
BobaFettUU is offline   you may: quote & reply,