Re: [BUG]

From: Marc Gale (MARC@BGC.AC.UK)
Date: 09/23/98


> #define MAX_ATTACKS             20 /* Used in mob_special_data          */
>
> struct mob_special_data {
>    byte last_direction;     /* The last direction the monster went      */
>    byte default_pos;        /* Default position for NPC                 */
>    memory_rec *memory;      /* List of attackers to remember            */
>    int wait_state;          /* Wait state for bashed mobs               */
>    byte num_hitdice;        /* Number of Hit Dice                       */
>    byte size_hitdice;       /* Size of Hit Dice                         */
>    byte add_hitdice;        /* Added to Hit Points after calculated     */
>    int experience;          /* Experience gained by killing             */
>    struct mob_attack_data attack[MAX_ATTACKS];  /* Attacks              */
> };
>
> struct mob_attack_data {
>    byte attack_type;        /* The Attack Type Bitvector for NPC's      */
>    byte damnodice;          /* The number of damage dice's              */
>    byte damsizedice;        /* The size of the damage dice's            */
> };
>

Put the mob_attack_data definition before any structs that use it.
In other words, reverse these two structs.

Marc


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



This archive was generated by hypermail 2b30 : 12/15/00 PST