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