ccs.eCampaign and ccs.eMarket
both contains a int var num
Just one small thing left:
items in eMarket are the ones i can buy, but do not yet own, am i right?
EDIT this is the function i'm currently using
/*======================
RS_MarkCollected
Marks all techs if an item they 'provide' have been collected.
Should be run after items have been collected/looted from the battlefield (cl_campaign.c -> "CL_CollectItems") and after techtree/inventory init (for all).
======================*/
void RS_MarkCollected ( void )
{
int i;
for ( i=0; i < MAX_OBJDEFS; i++ ) {
if ( ccs.eCampaign.num[i] ) {
RS_MarkOneCollected( csi.ods[i].kurz );
}
}
}
Werner