From dd6c4f56a1e2d3809a4d7b14d5d86a3e3f5e266f Mon Sep 17 00:00:00 2001 From: AalaarDB Date: Sun, 19 Aug 2007 21:25:35 +0000 Subject: [PATCH] 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 --- Tactical/LOS.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Tactical/LOS.cpp b/Tactical/LOS.cpp index f30c8a9f..ca12ebe5 100644 --- a/Tactical/LOS.cpp +++ b/Tactical/LOS.cpp @@ -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 );