Slight restructuring to increase readability of if-statements

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4566 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-04-12 10:52:16 +00:00
parent 1e62c71165
commit d78c51050d
1 changed files with 5 additions and 5 deletions

View File

@ -2787,15 +2787,15 @@ static BOOL maxDroidsByTypeReached(STRUCTURE *psStructure)
CHECK_STRUCTURE(psStructure);
if ( (droidTemplateType((DROID_TEMPLATE *)psFact->psSubject) == DROID_COMMAND) &&
(getNumCommandDroids(psStructure->player) >= MAX_COMMAND_DROIDS) )
if (droidTemplateType((DROID_TEMPLATE *)psFact->psSubject) == DROID_COMMAND
&& getNumCommandDroids(psStructure->player) >= MAX_COMMAND_DROIDS)
{
return true;
}
if ( (droidTemplateType((DROID_TEMPLATE *)psFact->psSubject) == DROID_CONSTRUCT ||
droidTemplateType((DROID_TEMPLATE *)psFact->psSubject) == DROID_CYBORG_CONSTRUCT) &&
(getNumConstructorDroids(psStructure->player) >= MAX_CONSTRUCTOR_DROIDS) )
if ((droidTemplateType((DROID_TEMPLATE *)psFact->psSubject) == DROID_CONSTRUCT
|| droidTemplateType((DROID_TEMPLATE *)psFact->psSubject) == DROID_CYBORG_CONSTRUCT)
&& getNumConstructorDroids(psStructure->player) >= MAX_CONSTRUCTOR_DROIDS)
{
return true;
}