mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
fix: night vision bonus wasn#t given correctly when using scope modes
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5450 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1
-1
@@ -10626,7 +10626,7 @@ INT16 GetNightVisionRangeBonus( SOLDIERTYPE * pSoldier, UINT8 bLightLevel )
|
|||||||
if ( (&pSoldier->inv[HANDPOS]) == pObj && ObjList[pSoldier->bScopeMode] != NULL )
|
if ( (&pSoldier->inv[HANDPOS]) == pObj && ObjList[pSoldier->bScopeMode] != NULL )
|
||||||
// now apply the bonus from the scope we use
|
// now apply the bonus from the scope we use
|
||||||
sScopebonus += BonusReduceMore(
|
sScopebonus += BonusReduceMore(
|
||||||
NightBonusScale( Item[ObjList[pSoldier->bScopeMode]->usItem].cavevisionrangebonus, bLightLevel ),
|
NightBonusScale( Item[ObjList[pSoldier->bScopeMode]->usItem].nightvisionrangebonus, bLightLevel ),
|
||||||
(*ObjList[pSoldier->bScopeMode])[0]->data.objectStatus );
|
(*ObjList[pSoldier->bScopeMode])[0]->data.objectStatus );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user