REMOVE_FROM_LIST

From: jINx (jinx@lewp.net)
Date: 08/15/00


I have been implementing a party system into my circlemud, basically because i dislike the grouping system. I have ran into one dilemma .. I cannot quite understand the REMOVE_FROM_LIST macro ..

struct party_type {
   struct char_data *member;
   struct follow_type *next;
};

struct char_data {
    ...
   char party_name;                    /* Party name */
   struct char_data *party_leader;     /* Party leader */
   struct party_type *party;           /* Party list */
};

i wuz thinking something on the line of: 

REMOVE_FROM_LIST(ch, ch->party_leader.party, next);

but i don't think it did the correct result .. any info would be helpful, thanx =)

Okay,
    jINx


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT