Re: [BUG?] Mount code

From: Tony Robbins [Kupek] (tonyr@NWPACLINK.COM)
Date: 09/03/98


> It changes it to::
> if (IS_SET(ROOM_FLAGS(ch->in_room), ROOM_DEATH)) {
>   if (GET_LEVEL(ch) < LVL_IMMORT) {
>     log_death_trap(ch);
>     death_cry(ch);
>     extract_char(ch);
>   }
>
>   if (riding && GET_LEVEL(RIDING(ch)) < LVL_IMMORT) {
>     log_death_trap(ch);
>     death_cry(ch);
>     extract_char(ch);
>   }
> ...
>
> Though that might look right at a glance is that not horror? If a character
> was mounted and walked into a DT they would be killed Twice!? Should that not
> be::
>     log_death_trap(RIDING(ch));
>     death_cry(RIDING(ch));
>     extract_char(RIDING(ch));
>   }
> ...

No, actually it's right.  The RIDING() macro points to the mob/person that
the character "ch" is mounted upon.  This simply kills the mount and the
rider.

Lookie again.  :P

-B.


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