Re: [Code][Newbie] do_stat

From: Robert Sinland (rsinland@ERSKINE.POLARISTEL.NET)
Date: 07/21/97


Chris Proctor wrote:
>
> >
> > const char *race_abbrevs[] = {
> >   "Human",
> >   "Elf",
> >   "Gnome",
> >   "Dwarf",
> >   "Hobbit",
> >   "Drow",
> >   "HalfElf",
> >   "HalfOrc",
> >   "\n"
> > };
> > (or something like it) in class.c
>
> Hate to be a nit picker, but calling that array race_abbrevs is rather
> misleading. An array of abbreviations would be somehting like:
>   "Hum", "Elf", "Gno" ....
> and so on.
>
> You'd want to make two arrays, one abbreviated and one not.
>
> You also have to create the RACE_ABBR macro in utils.h if that wasn
> t already self-explanatory.
>
  *chuckle* true enough... I actually changed the abbrev to the full
name instead of creating a new array since I didn't really have a need
for the abbreviated form anywhere.  Good point though :)
RS


     +------------------------------------------------------------+
     | 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