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
This commit is contained in:
silversurfer
2013-09-07 21:05:40 +00:00
parent 23384a9199
commit bad36b088c
-1
View File
@@ -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);