Re: Class Implementation

From: Leonardo Herrera L. (leherrer@ENTELCHILE.NET)
Date: 08/07/97


Stephen Marz wrote:
>
> Anyone want to tell me why this class implementation only returns 0? It
> will not return any other value. I even made a test define, the
> GET_CLASS(mob_proto +i) = NPC_CLASS_UNKNOWN, unknown is number 11 in the
> structs.h file.
>
> sscanf(line, "%s %s %d %s %c", f1, f2, t + 2, &race_letter, &letter);
>   MOB_FLAGS(mob_proto + i) = asciiflag_conv(f1);
>   SET_BIT(MOB_FLAGS(mob_proto + i), MOB_ISNPC);
>   AFF_FLAGS(mob_proto + i) = asciiflag_conv(f2);
>   GET_ALIGNMENT(mob_proto + i) = t[2];

>   LOWER(race_letter);
>   GET_CLASS(mob_proto + i) = NPC_CLASS_UNKNOWN;
>   switch (race_letter)
>   {
[...]
>   case 'sm':
[...]
I don't understand that!!!  'sm' ??!?!?!?!?!
Anyone can explain it?
(race_letter is a char??? no?)


     +------------------------------------------------------------+
     | 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/08/00 PST