On second though, there appears to be an ERROR with that code!
'int cexp' and 'int aexp' are defined inside an if-statement, but used later outside it.
Which means that it is possible to reference those variables without them being initialized first.
Also, they are always either '500' or '100', so that check isn't necessary.
I think effectively this would do the same thing:
If it is meant to do something other than that, please double-check that section of coding....
'int cexp' and 'int aexp' are defined inside an if-statement, but used later outside it.
Which means that it is possible to reference those variables without them being initialized first.
Also, they are always either '500' or '100', so that check isn't necessary.
I think effectively this would do the same thing:
Code:
if (bSeriousBoom)
{
[...]
Ship_AddDelayedCumXP(GetCharacter(iBallCharacterIndex), "Cannons", 500); //Levis
Ship_AddDelayedCumXP(GetCharacter(iBallCharacterIndex), "Accuracy", 500); //Levis
}
else
{
[...]
Ship_AddDelayedCumXP(GetCharacter(iBallCharacterIndex), "Cannons", 100); //Levis
Ship_AddDelayedCumXP(GetCharacter(iBallCharacterIndex), "Accuracy", 100); //Levis
}
[...]
}