- Added CtH fix from AndroidXP

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@804 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2007-03-29 11:00:22 +00:00
parent 344eb9498c
commit 9467b5b6a7
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -6670,7 +6670,8 @@ INT16 GetVisionRangeBonus( SOLDIERTYPE * pSoldier )
}
// Snap: check only attachments on a raised weapon!
if ( WeaponReady(pSoldier) )
//AXP 28.03.2007: CtH bug fix: We also want to check on a firing weapon, "raised" alone is not enough ;)
if ( WeaponReady(pSoldier) || gAnimControl[ pSoldier->usAnimState ].uiFlags & ANIM_FIRE )
{
for (int i=0; i < MAX_ATTACHMENTS; i++)
{