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-861f7616d084master
parent
4ca418215e
commit
723638a47b
|
@ -827,7 +827,7 @@ static void proj_InFlightDirectFunc(PROJECTILE *psProj)
|
||||||
/* Buildings cannot be penetrated and we need a penetrating weapon */
|
/* Buildings cannot be penetrated and we need a penetrating weapon */
|
||||||
if (psTempObj->type == OBJ_DROID && psStats->penetrate)
|
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
|
// Determine position to fire a missile at
|
||||||
// (must be at least 0 because we don't use signed integers
|
// (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)
|
// 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 */
|
/* Buildings cannot be penetrated and we need a penetrating weapon */
|
||||||
if (psTempObj->type == OBJ_DROID && psStats->penetrate)
|
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
|
// Determine position to fire a missile at
|
||||||
// (must be at least 0 because we don't use signed integers
|
// (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)
|
// this shouldn't be larger than the height and width of the map either)
|
||||||
|
|
Loading…
Reference in New Issue