Re: [CODE] Leave/Arrive

From: Admin of The Keep (dkoepke@california.com)
Date: 10/31/96


On Thu, 31 Oct 1996, Skylar wrote:

> Make a new array of arrive_dirs to use ...
> 
> const char *arrive_dirs[] =
> {
>   "the south",
>   "the west",
>   "the north",
>   "the east",
>   "below",
>   "above",
>   "\n"
> };
> 
> This is better than using rev_dirs[] because you won't see anything silly
> like this: "Skylar has arrived from up."

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]]);

I suppose a new array looks nicer, but I can't see why you'd
need one to avoid the problem you listed.  All well, not a big
concern.  Just nit-picking, I suppose.

--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


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