View Single Post
  #3  
Old 12-02-2003, 07:59 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

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.
__________________
Maybe I should try making one of these servers...
Reply With Quote