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-861f7616d084master
parent
1f9303e74c
commit
03f3c9c5d6
|
@ -908,6 +908,7 @@ static void proj_InFlightFunc(PROJECTILE *psProj, bool bIndirect)
|
|||
{
|
||||
// We hit!
|
||||
psProj->pos = closestCollisionPos;
|
||||
setProjectileDestination(psProj, closestCollisionObject); // We hit something.
|
||||
|
||||
/* Buildings cannot be penetrated and we need a penetrating weapon */
|
||||
if (closestCollisionObject->type == OBJ_DROID && psStats->penetrate)
|
||||
|
|
Loading…
Reference in New Issue