- reverted the "Fix for chance to hit being 1% at distances > 52" because it removes visibility limit

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1231 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2007-08-20 11:40:28 +00:00
parent dd6c4f56a1
commit f4bbb51e07
+6 -5
View File
@@ -768,11 +768,12 @@ INT32 LineOfSightTest( FLOAT dStartX, FLOAT dStartY, FLOAT dStartZ, FLOAT dEndX,
} }
//ADB remove this check since I might have a scope that allows me to see past this arbitrary limit //ADB remove this check since I might have a scope that allows me to see past this arbitrary limit
//if ( iDistance > iSightLimit) //Lalien: just removing this check removes visibility limit completly
//{ if ( iDistance > iSightLimit)
// out of visual range {
// return( 0 ); //out of visual range
//} return( 0 );
}
ddHorizAngle = atan2( dDeltaY, dDeltaX ); ddHorizAngle = atan2( dDeltaY, dDeltaX );