raytrace: When hitting the wrong target, do damage to the wrong target, too.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9429 4a71c877-e1ca-e34f-864e-861f7616d084
master
Cyp 2010-01-23 21:28:12 +00:00 committed by Git SVN Gateway
parent 1f9303e74c
commit 03f3c9c5d6
1 changed files with 1 additions and 0 deletions

View File

@ -908,6 +908,7 @@ static void proj_InFlightFunc(PROJECTILE *psProj, bool bIndirect)
{ {
// We hit! // We hit!
psProj->pos = closestCollisionPos; psProj->pos = closestCollisionPos;
setProjectileDestination(psProj, closestCollisionObject); // We hit something.
/* Buildings cannot be penetrated and we need a penetrating weapon */ /* Buildings cannot be penetrated and we need a penetrating weapon */
if (closestCollisionObject->type == OBJ_DROID && psStats->penetrate) if (closestCollisionObject->type == OBJ_DROID && psStats->penetrate)