Sorry for necro-posting this thread, but I found a bug involving cleaning up FFC`s after killing ghosted enemies. The cleaning here is done by just setting FFC`s Data to combo #0. But IMHO, it`s far from enough, if FFC will be reused by other scripts (like summoned ghosted enemies). This may result in graphical glitches or wrong script behaviour, depending on how that script uses FFC. Here is a proper FFC cleanup function:
//Clears FFC and prepares it for being reused. Works best right before calling "Quit()"
void CleanFFC(ffc f){
f->X=0;
f->Y=0;
f->Data=0;
f->Ax=0;
f->Ay=0;
f->TileHeight=1;
f->TileWidth=1;
f->EffectHeight=16;
f->EffectWidth=16;
f->Vx=0;
f->Vy=0;
f->Delay=0;
f->CSet=0;
for(int i=0; i<=15; i++){
f->Misc[i]=0;
}
}
Edited by Alucard648, 01 August 2014 - 07:53 PM.

