Re: A 'home' made bug...

From: Brian Pape (bpape@ezl.com)
Date: 04/16/96


> Anyways.. I have a bug in the do_home command I've made.. here's the code
> I have for it:

>   act("$n runs home!", TRUE, ch, 0, 0, TO_ROOM);
>   char_from_room(victim);
>   char_to_room(victim, GET_LOADROOM(d->character));

> I get the impression that I'm doing the send_to_char thing wrong...
> What do I do?

Your coming up with imaginary values for 'victim'...  Why are you even
using it?

Do this:

...
char_from_room(d->character);
char_to_room(d->character, GET_LOADROOM(d->character));
...


Brian Pape
bpape@ezl.com



This archive was generated by hypermail 2b30 : 12/18/00 PST