Edward Felch wrote: > > I noticed an odd bug in digging/searching up buried items recently, it seems > to search the entire world for buried items and uncovers them, can anybody > help me with where the loop or whatnot is going wrong? > > obj = world[IN_ROOM(ch)].contents; > > while (obj != NULL) { > if (IS_BURIED(obj)) { > /* Remove the buried bit so the player can see it. */ <...snip...> > } > else { > SET_BIT(GET_OBJ_EXTRA(obj), ITEM_BURIED); > } > } > /* go to the next obj */ > obj = obj->next; > } Don't you want obj->next_content (next in room) and not ->next? What I really want to know is why every other item isn't buried? --Angus -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/05/01 PST