Re: Lighting rooms with objects in your inventory.

From: Kras Kresh (kras_kresh@hotmail.com)
Date: 04/24/02


>From: David Cole <tiznor@softhome.net>
>Subject: Re: [CIRCLE] Lighting rooms with objects in your inventory.
>Date: Wed, 24 Apr 2002 14:52:26 -0500
>
> > try using OBJ_FLAGGED(obj, ITEM_ILLUMINATE) instead of extra_flags =
> > item_illuminate
>
>Tha made it look a little better, but in the sense of working, it did not.
>Any other ideas?
>
>in char_to_room():
>
>     for (obj = ch->carrying; obj; obj = next_obj) {
>       next_obj = obj->next_content;
>       if (OBJ_FLAGGED(obj, ITEM_ILLUMINATE))
>         world[ch->in_room].light ++;
>  }

You should read what you write. You are sending the character to the room,
but he isn't there yet. So why are you using ch->in_room?


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

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