Re: [CODE] do_board

From: Daniel Koepke (dkoepke@california.com)
Date: 12/15/96


On Sun, 15 Dec 1996, Nick B wrote:

> There most certainly is.  Oh, BTW, it also sometimes said some things about
> ch equaling NULL in handler.c, but I think that was because the char_to_room
> didn't them the char anywhere in the first place.

char_to_room() excepts real room number.  You're using the mob's vnum,
for the room vnum.  Do a real_room() on it.  And you should be making
certain that the room exists:

  if ((rnum = real_room(GET_MOB_VNUM(mob))) != NOWHERE) {
    char_from_room(ch);
    char_to_room(ch, rnum);
    look_at_room(ch, 0);
  }

Godspeed,


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