Slight restructuring to increase readability of if-statements
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4566 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
1e62c71165
commit
d78c51050d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue