Re: [code] This must be wrong....

From: George (greerga@CIRCLEMUD.ORG)
Date: 08/17/98

On Mon, 17 Aug 1998, Kevin Doherty wrote:

>If ch->in_room is equal to X, wouldn't world[X].people _have_ to be
>non-null, as presumably if ch thinks its in room X, room X thinks it
>contains ch. I think the correct solution (though I have no source at hand
>so I could be wrong) would be:

Didn't notice the [ch->inroom] part.  Otherwise it would work. (If it
worked with the inroom part, something is seriously wrong.)

>  if (ch->next_in_room == NULL) {

You may not be the first character in the room.  So try num_pc_in_room() or
whatever it's called. :)

George Greer, | Genius may have its limitations, but (not done) | stupidity is not thus handicapped.    |                  -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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