Skip to content

Commit

Permalink
Let CB sensors defend allies too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyp committed May 23, 2012
1 parent 5d19904 commit 313738e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/combat.cpp
Expand Up @@ -367,7 +367,7 @@ void counterBatteryFire(BASE_OBJECT *psAttacker, BASE_OBJECT *psTarget)
DROID *psDroid;
SDWORD sensorRange = 0;

if (psViewer->player != psTarget->player)
if (!aiCheckAlliances(psViewer->player, psTarget->player))
{
//ignore non target players' objects
continue;
Expand Down

0 comments on commit 313738e

Please sign in to comment.