Stat obj Bug Fix

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/25/97


diff -upPr -x *.o ../stk/handler.c ./handler.c
--- ../stk/handler.c    Sat Apr 13 19:19:40 1996
+++ ./handler.c Sat Oct 25 14:34:10 1997
@@ -1013,7 +1013,7 @@ struct obj_data *get_obj_vis(struct char
   /* ok.. no luck yet. scan the entire obj list   */
   for (i = object_list; i && (j <= number); i = i->next)
     if (isname(tmp, i->name))
-      if (CAN_SEE_OBJ(ch, i))
+      if (CAN_SEE_OBJ(ch, i) && (!i->carried_by || CAN_SEE(ch, i->carried_by)))
        if (++j == number)
          return i;

This fix involves considering any object held by a person you cannot see to
be invisble to you.  This addition fixes the stat object bug where it will
give you the name of the invisible immortal if you stat an object they
have.  The other patch I sent previously is still required for 'where' to
not display objects on invisible people as 'someone'.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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/08/00 PST