Re: [ Code ] Questions about vnums

From: David Klasinc (bigwhale@CAPYBARA.SK-PTTSC.LJ.EDUS.SI)
Date: 09/21/97


On Sat, 20 Sep 1997, John Evans wrote:

> In utils.h I have:
> #define GET_OBJ_VNUM(obj)       (GET_OBJ_RNUM(obj) >= 0 ? \
>                                  obj_index[GET_OBJ_RNUM(obj)].virtual : -1)
>
> I have added tons of useful macros to utils.h, so I don't remember if
> this is a stock one or not.
>
> Hope it helps....

*giggle* I know this... I just didn't know how to refer to the object who
has spec.

It would be something like

GET_OBJ_VNUM(me) :)


David!


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