Re: Re-string problems(more from the last)

From: Charles Erwin (Mystikarc@aol.com)
Date: 07/16/00


Okay, I was lookign at int Obj_to_store (code below)
Maybe Im missing somethign or its wrong?? but it does say (not in words but
with an Else)
that if xapobjs then write to save disk.

int Obj_to_store(struct obj_data * obj, FILE * fl, int location)
{
  int j;
  struct obj_file_elem object;

  if(!xap_objs) {
    object.item_number = GET_OBJ_VNUM(obj);
#if USE_AUTOEQ
    object.location = location;
#endif
    object.value[0] = GET_OBJ_VAL(obj, 0);
    object.value[1] = GET_OBJ_VAL(obj, 1);
    object.value[2] = GET_OBJ_VAL(obj, 2);
    object.value[3] = GET_OBJ_VAL(obj, 3);
    object.extra_flags = GET_OBJ_EXTRA(obj);
    object.weight = GET_OBJ_WEIGHT(obj);
    object.timer = GET_OBJ_TIMER(obj);
    object.bitvector = obj->obj_flags.bitvector;
    for (j = 0; j < MAX_OBJ_AFFECT; j++)
      object.affected[j] = obj->affected[j];

    if (fwrite(&object, sizeof(struct obj_file_elem), 1, fl) < 1) {
      perror("SYSERR: error writing object in Obj_to_store");
      return (0);
    }
  } else {
    my_obj_save_to_disk(fl, obj, location);
  }

  return (1);
}


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT