From f4bbb51e074e9960e1f9437ddec6034f28e88a48 Mon Sep 17 00:00:00 2001 From: lalien Date: Mon, 20 Aug 2007 11:40:28 +0000 Subject: [PATCH] - 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 --- Tactical/LOS.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Tactical/LOS.cpp b/Tactical/LOS.cpp index ca12ebe5..d62fa3df 100644 --- a/Tactical/LOS.cpp +++ b/Tactical/LOS.cpp @@ -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 - //if ( iDistance > iSightLimit) - //{ - // out of visual range - // return( 0 ); - //} + //Lalien: just removing this check removes visibility limit completly + if ( iDistance > iSightLimit) + { + //out of visual range + return( 0 ); + } ddHorizAngle = atan2( dDeltaY, dDeltaX );