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