> > > GET_RACE(mob_proto + i) = t[2]; > > > GET_CLASS(mob_proto + i) = t[3]; [...] > #define GET_RACE(ch) ((ch)->player.race) > #define GET_CLASS(ch) ((ch)->player.chclass) Correct me if I'm wrong, but I believe that ch->player points to a player-only structure [e.g., a structure that is not allocated for NPCs at all]. Make sure that both NPCs and PCs can have a race and class first [by taking the variables from the player-only structure and moving them to a shared structure]. Then, I would create defines for just NPCs [GET_M_RACE(), GET_M_CLASS()]. HTH, Jon A. Nielsen nielsenja@kilnar.com http://spear.kilnar.com/ -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/24/03 PDT