-even smaller sniper fix

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@241 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2006-06-16 23:06:00 +00:00
parent 0b85322585
commit fa415e1c21
+1 -1
View File
@@ -155,7 +155,7 @@ void CalcBestShot(SOLDIERTYPE *pSoldier, ATTACKTYPE *pBestShot, BOOLEAN shootUns
continue; // next merc
// if this opponent is not currently in sight (ignore known but unseen!)
if (pSoldier->bOppList[pOpponent->ubID] != SEEN_CURRENTLY && !shootUnseen ||
if ((pSoldier->bOppList[pOpponent->ubID] != SEEN_CURRENTLY && !shootUnseen) ||
(shootUnseen && gbPublicOpplist[pSoldier->bTeam][pOpponent->ubID] != SEEN_CURRENTLY) )
continue; // next opponent