phungus420
Deity
- Joined
- Mar 1, 2003
- Messages
- 6,296
Here is my theory.
I have this code:
Now I think the else check is screwing it up and always returning true, since it is in the loop. But how can I get bValid to be true for units that don't have anything defined in the tag, but run the function and return false for units that do have something defined there, but aren't running the current civic of something defined in the array?
I have this code:
Code:
if (GC.getUnitInfo(eUnit).getPrereqOrCivics(iI))
{
if (isCivic((CivicTypes)iI) && (GC.getUnitInfo(eUnit).getPrereqOrCivics(iI)))
{
bValid = true;
}
}
else
{
bValid = true;
}