In checkValidWeaponForProp - Re: FIXME - we're checking for attack runs on non-air units because this is a validation routine - obviously, non-air weapons should not have attack runs.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8878 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
7bd58439d4
commit
49bea1ed22
|
@ -4601,7 +4601,6 @@ BOOL checkValidWeaponForProp(DROID_TEMPLATE *psTemplate)
|
|||
return false;
|
||||
}
|
||||
|
||||
// FIXME -- why are we checking vtolAttackRuns on non AIR units?
|
||||
if (asPropulsionTypes[psPropStats->propulsionType].travel == AIR)
|
||||
{
|
||||
//check weapon stat for indirect
|
||||
|
@ -4613,6 +4612,7 @@ BOOL checkValidWeaponForProp(DROID_TEMPLATE *psTemplate)
|
|||
}
|
||||
else
|
||||
{
|
||||
// VTOL weapons do not go on non-AIR units.
|
||||
if ( asWeaponStats[psTemplate->asWeaps[0]].vtolAttackRuns )
|
||||
{
|
||||
bValid = false;
|
||||
|
|
Loading…
Reference in New Issue