Fix for chance to hit being 1% at distances > 52

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1228 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
AalaarDB
2007-08-19 21:25:35 +00:00
parent fccef1faea
commit dd6c4f56a1
+5 -4
View File
@@ -767,11 +767,12 @@ INT32 LineOfSightTest( FLOAT dStartX, FLOAT dStartY, FLOAT dStartZ, FLOAT dEndX,
iDistance += 1;
}
if ( iDistance > iSightLimit)
{
//ADB remove this check since I might have a scope that allows me to see past this arbitrary limit
//if ( iDistance > iSightLimit)
//{
// out of visual range
return( 0 );
}
// return( 0 );
//}
ddHorizAngle = atan2( dDeltaY, dDeltaX );