Re: [NEWBIE] Examine X.corpse problem.

From: Juliano Ravasi Ferraz (jferraz@linkway.com.br)
Date: 03/28/00


> Hi friends.

Hi Khayman! You again? Oh...

> I have one problem with corpses in my MUD. When there are more than one
> corpse in a room, the player can't see what is in the others corpses. Always
> the MUD show me what is in the first corpse. If I use "exa corpse" or "exa
> 2.corpse" the MUD always show me what is in the first corpse. How can I
> solve this?

You has found a bug. This comes from bpl16. I already sent this bug
report to bugs@circlemud.org, but for some strange reason, it appeared
blank on bugs database (bugs.circlemud.org). Now, George, patch it! :-)

BUG: Calling look_at_target from inside do_examine, it destroys arg.
SOLUTION: Send to look_at_target an copy of arg, instead the real arg.
PATCH:
--- act.informative.c.orig      Tue Mar 28 12:57:31 2000
+++ act.informative.c   Tue Mar 28 12:57:52 2000
@@ -649,7 +649,7 @@ ACMD(do_examine)
     send_to_char("Examine what?\r\n", ch);
     return;
   }
-  look_at_target(ch, arg);
+  look_at_target(ch, str_dup(arg));

   generic_find(arg, FIND_OBJ_INV | FIND_OBJ_ROOM | FIND_CHAR_ROOM |
                      FIND_OBJ_EQUIP, ch, &tmp_char, &tmp_object);


smile

,--[ Juliano Ravasi Ferraz, F.R+C ]--------------------.
|   `-[ jferraz@linkway.com.br ]----------------------.|
|                                                      |
| Rayon Eletônica e Informática Ltda - Diretor Técnico |
|    Linkway Internet Provider - Unidade Descalvado    |
`------------------------------------------------------'


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT