On Thu, 7 May 1998, Chuck Carson wrote:
> char_from_room(ch);
> char_to_room(ch, real_room(2612));
> look_at_room(ch, 0);
> return TRUE;
Change the above to:
target_room = real_room(2612);
if (target_room == NOWHERE) {
send_to_char("The cabinet slams in your face.\r\n", ch);
return TRUE;
}
else {
char_from_room(ch);
char_to_room(ch, target_room);
look_at_room(ch, FALSE);
return TRUE;
}
That way if room 2612 suddenly disappears, they won't get placed in
NOWHERE, and from experience, I have found that the MUD really doesn't
like that.
John Evans <evansj@hi-line.net> -- http://www.hi-line.net/~evansj/
Any sufficiently advanced technology is indistinguishable from magic.
-- Arthur C. Clarke
+------------------------------------------------------------+
| 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/15/00 PST