From bad36b088cce3d80858505afbe43ebe04dba3682 Mon Sep 17 00:00:00 2001 From: silversurfer Date: Sat, 7 Sep 2013 21:05:40 +0000 Subject: [PATCH] Bugfix for NCTH Bug introduced in 6363. iSightRange was set to 0 after it had been calculated correctly which lead to fCantSeeTarget = true all the time. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6373 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Weapons.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Tactical/Weapons.cpp b/Tactical/Weapons.cpp index cb2ca2ef..e72c8a36 100644 --- a/Tactical/Weapons.cpp +++ b/Tactical/Weapons.cpp @@ -5016,7 +5016,6 @@ UINT32 CalcNewChanceToHitGun(SOLDIERTYPE *pSoldier, INT32 sGridNo, INT16 ubAimTi if ( sDistVisNoScope ) scopeRangeMod = (float)sDistVis / (float)sDistVisNoScope; // percentage DistVis has been enhanced due to an attached scope - iSightRange = 0; if ( scopeRangeMod ) iSightRange = (INT32)(iSightRange / scopeRangeMod);