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-861f7616d084
master
Guangcong Luo 2009-12-31 03:23:02 +00:00 committed by Git SVN Gateway
parent 7bd58439d4
commit 49bea1ed22
1 changed files with 1 additions and 1 deletions

View File

@ -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;