Re: str_dup, CREATE(), et al (and an ObCircle)

From: ;P (siv@CYBERENET.NET)
Date: 03/17/98


> well, I did think of that, but I was wondering (seeing as
> how the strings are str_dup'd) is there something I could do
> about that?
> like free_char_strings() or some such?

doesn't free_char already free the strings?

siv

ObCircle:

a little addition that i find quite useful..i expanded the roomflags flag
to include not only rooms, but mobs and objects..so that i can see the
vnums of them as i walk around the mud and i don't have to do a 'stat
blah' every time..

add the lines with plusses..here's the code:

in show_obj_to_char:

  *buf = '\0';

+  if ((PRF_FLAGGED(ch, PRF_ROOMFLAGS)) && (mode != 5))
+    sprintf(buf, "[%d] ", GET_OBJ_VNUM(object));

  if (IS_OBJ_STAT(object, ITEM_HIDDEN) && (mode != 5))
    strcat(buf, "(hidden) ");



in list_all_char (hrm..or whatever the stock func is):

  if (IS_NPC(i) && i->player.long_descr && GET_POS(i) == GET_DEFAULT_POS(i)) {

+    if (PRF_FLAGGED(ch, PRF_ROOMFLAGS))
+      sprintf(buf, "[%d] ", GET_MOB_VNUM(i));

    if (IS_AFFECTED(i, AFF_INVISIBLE))
      strcat(buf, "*");


     +------------------------------------------------------------+
     | 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/15/00 PST