Remove some unused variables found by gcc 4.6.
parent
577cbbf874
commit
b29fe379f8
|
@ -2801,13 +2801,6 @@ bool calcDroidMuzzleBaseLocation(DROID *psDroid, Vector3i *muzzle, int weapon_sl
|
||||||
if (psBodyImd && psBodyImd->nconnectors)
|
if (psBodyImd && psBodyImd->nconnectors)
|
||||||
{
|
{
|
||||||
Vector3i barrel(0, 0, 0);
|
Vector3i barrel(0, 0, 0);
|
||||||
iIMDShape *psWeaponImd = 0, *psMountImd = 0;
|
|
||||||
|
|
||||||
if (psDroid->asWeaps[weapon_slot].nStat)
|
|
||||||
{
|
|
||||||
psMountImd = WEAPON_MOUNT_IMD(psDroid, weapon_slot);
|
|
||||||
psWeaponImd = WEAPON_IMD(psDroid, weapon_slot);
|
|
||||||
}
|
|
||||||
|
|
||||||
pie_MatBegin();
|
pie_MatBegin();
|
||||||
|
|
||||||
|
|
|
@ -5346,14 +5346,6 @@ bool calcStructureMuzzleBaseLocation(STRUCTURE *psStructure, Vector3i *muzzle, i
|
||||||
if(psShape && psShape->nconnectors)
|
if(psShape && psShape->nconnectors)
|
||||||
{
|
{
|
||||||
Vector3i barrel(0, 0, 0);
|
Vector3i barrel(0, 0, 0);
|
||||||
unsigned int nWeaponStat = psStructure->asWeaps[weapon_slot].nStat;
|
|
||||||
iIMDShape *psWeaponImd = 0, *psMountImd = 0;
|
|
||||||
|
|
||||||
if (nWeaponStat)
|
|
||||||
{
|
|
||||||
psWeaponImd = asWeaponStats[nWeaponStat].pIMD;
|
|
||||||
psMountImd = asWeaponStats[nWeaponStat].pMountGraphic;
|
|
||||||
}
|
|
||||||
|
|
||||||
pie_MatBegin();
|
pie_MatBegin();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue