>From: David Cole <tiznor@softhome.net>
>Subject: [CIRCLE] Lighting rooms with objects in your inventory.
>Date: Tue, 23 Apr 2002 23:08:11 -0500
>I'm haven a hell of a time trying to get illuminated object that are in a
>character inventory to light a room.
>in char_to_room():
> for (obj = ch->carrying; obj; obj = next_obj) {
> next_obj = obj->next_content;
> if (obj->obj_flags.extra_flags == ITEM_ILLUMINATE)
> world[ch->in_room].light ++;
> }
try using OBJ_FLAGGED(obj, ITEM_ILLUMINATE) instead of extra_flags =
item_illuminate
in case you don't have that define...
#define OBJ_FLAGGED(obj, flag) (IS_SET((obj)->obj_flags.extra_flags,
(flag)))
while you're at it, do the same for char_from_room(), but instead use --
instead of ++
_________________________________________________________________
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