From 03f3c9c5d6b40d244234bfd63d7a0ff536e14b5b Mon Sep 17 00:00:00 2001 From: Cyp Date: Sat, 23 Jan 2010 21:28:12 +0000 Subject: [PATCH] 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 --- src/projectile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/projectile.c b/src/projectile.c index d15fed0bb..f7fe81abd 100644 --- a/src/projectile.c +++ b/src/projectile.c @@ -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)