Re: [coding] DT's and players EQ

From: Daniel Koepke (dkoepke@california.com)
Date: 01/06/97


On Mon, 6 Jan 1997, Robert wrote:

>     while (ch->carrying) {
>         foolz_objs = ch->carrying;
>         obj_to_room(foolz_objs, RDR);
>     }

Change to:

  while (ch->carrying) {
    obj_from_char(ch->carrying);
    obj_to_room(ch->carrying, RDR);
  }

The 'foolz_obj' thing, I believe, is completely unneccessary.  The
problem was that you were putting the object in the room, but you
weren't taking it away from the player (thus, ch->carrying [and,
hence, foolz_obj] was always the same [eg., always != NULL, and you'd
get an infinite loop]).


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