On Thu, 13 Dec 2001, krenshala wrote: >[I'm trying to clear up warnings about values always being true, and they >keep involving GET_ROOM_VNUM() and/or top_of_world. I have changed NOWHERE >(et al) to 65535 (zone vnums are unsigned) and I -think- that might be part >of the problem. /: ] I'm using: #define VALID_ROOM_RNUM(rnum) ((rnum) != NOWHERE && (rnum) <= top_of_world) #define GET_ROOM_VNUM(rnum) \ ((room_vnum)(VALID_ROOM_RNUM(rnum) ? world[(rnum)].number : NOWHERE)) #define GET_ROOM_SPEC(room) \ (VALID_ROOM_RNUM(room) ? world[(room)].func : NULL) -- George Greer greerga@circlemud.org -- +---------------------------------------------------------------+ | 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/24/03 PDT