mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
+5
-4
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user