Re: mobact.c

From: Alex (fletchra@qsilver.queensu.ca)
Date: 01/22/02


> struct char_data *rand_vict(struct char_data *ch)
> {
...
>     /* count the people in the room */
>     for(i = 0, vict = world[ch->in_room].people; vict; vict = vict->next, i++);
i'd suggest adding a check for self.  after all, doing it to himself would
be baaaaad.  (=

ae.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT