Re: purge_zone, db.c

From: Sean Butler (sbutler@DEVEAST.COM)
Date: 12/05/97


At 04:01 PM 12/5/97 -0500, Angus Mezick wrote:
>     1) is the function purge_zone stock, (been a long time)
>
>     2) if it is, is this line wrong or am I confused:
>           if (!ob->carried_by && !ob->in_obj && !ob->worn_by &
>     !ob->contains
>          && (world[ob->in_room].zone == zone)
>          && (!IS_SET(world[ob->in_room].room_flags, ROOM_HOUSE)))
>     extract_object(ob);
>
>     notice the single & symbol after worn_by.  that just seem wrong.
>     --Angus

It is wrong, bitwise and of 2 pointers is rarely meaningful, if ever.
--Sean
----

     /'''''''''''''''''\'\       The final aspiration of all coders?
    |                   | |
    | /* Sean Butler */ | |      Sean Butler
    |                   | |      Coder for finality.com 4000
    |      exit(0);     | |      xin@finality.com
    |                   | |
    |                   | |
   \\//................\\\//


     +------------------------------------------------------------+
     | 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