Quote:
Originally Posted by Edgar1898
good catch! I'll fix that tonight 
|
Thanks.
To be honest, I was in the process of replacing it with some expiremental code when I noticed it...
expiremental code:
Code:
float xDiff=(x_pos-x);
float yDiff=(y_pos-y);
float zDiff=(z_pos-z);
float calctemp;
float calcdist;
__asm
{
fld xDiff
fmul xDiff
fst calctemp
fld yDiff
fmul yDiff
fadd calctemp
fst calctemp
fld zDiff
fmul zDiff
fadd calctemp
fsqrt
fst calcdist
}
return calcdist;
So far, it seems to work correctly.