Commit patch #76 by stiv which fixes two compiler warnings in projectile.c. The patch is of similar ilk to that of r6071.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6072 4a71c877-e1ca-e34f-864e-861f7616d084
master
Freddie Witherden 2008-09-24 18:35:23 +00:00
parent 4ca418215e
commit 723638a47b
1 changed files with 2 additions and 2 deletions

View File

@ -827,7 +827,7 @@ static void proj_InFlightDirectFunc(PROJECTILE *psProj)
/* Buildings cannot be penetrated and we need a penetrating weapon */
if (psTempObj->type == OBJ_DROID && psStats->penetrate)
{
WEAPON asWeap = {psStats - asWeaponStats, 0, 0, 0};
WEAPON asWeap = {psStats - asWeaponStats, 0, 0, 0, 0, 0};
// Determine position to fire a missile at
// (must be at least 0 because we don't use signed integers
// this shouldn't be larger than the height and width of the map either)
@ -1045,7 +1045,7 @@ static void proj_InFlightIndirectFunc(PROJECTILE *psProj)
/* Buildings cannot be penetrated and we need a penetrating weapon */
if (psTempObj->type == OBJ_DROID && psStats->penetrate)
{
WEAPON asWeap = {psStats - asWeaponStats, 0, 0, 0};
WEAPON asWeap = {psStats - asWeaponStats, 0, 0, 0, 0, 0};
// Determine position to fire a missile at
// (must be at least 0 because we don't use signed integers
// this shouldn't be larger than the height and width of the map either)