well, my problem first started when i changed over my aff's to runters code(it works great tho, at least, for loading mobs, but for players im getting some problems because of race i think).

so theres lines in the code like this:

ch->affected_by = ch->affected_by|race_table[race].aff;

and runters code didnt seem to like the '|', so i made this function to add all the bits from one list to another list, it was a lot uglier and messier but the code didnt seem to work at all, probably because i dont fully understand what this code does i think. so anyway, heres my code i have now, its simple but my mind says it should work...anybody have any suggestions?

void set_bit_list(BITMASK *mask, BITMASK *mask2)
{
               BMlist *pBlist;
        bool found = FALSE;


        for(pBlist = mask2->int_list;pBlist;pBlist = pBlist->next)
        {
                set_bit(mask,pBlist->tar_mask);
        }
        return;
}

_________________________________________________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.

Reply via email to