On Thu, 31 Oct 1996, Admin of The Keep wrote: > > const char *arrive_dirs[] = > > { > > "the south", > > "the west", > > "the north", > > "the east", > > "below", > > "above", > > "\n" > > }; > > > How is this better? Isn't the same thing accomplished with > sprintf? > > sprintf(buf, "$n has arrived from %s%s.", > (door <= EAST ? "the " : ""), > dirs[rev_dir[door]]); Joe has arrived from up. Joe has arrived from above. I didnt mean the word "the" was the problem, its the up/down vs. above/below. Thats why you need the new array. -Sky +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST