Re: Anyone seen this?

From: Del Minturn (caminturn@EARTHLINK.NET)
Date: 08/19/98


I was patching in olc hedit and percentages into bpl14 stock.
The oasis patch went in great, the hedit went in great too, the
percentages was slightly fun!
Had to hand patch db.c and a few other files (one or two lines).
Wat the error ended up comming from was this,

bad code:

   case 'P':                   /* object to object */
      if ((obj_index[ZCMD.arg1].number < ZCMD.arg2) &&
          obj_load && (number(1, 100) >= ZCMD.arg4)) {
        if (!(obj_to = get_obj_num(ZCMD.arg3))) {
          ZONE_ERROR("target obj not found");
          break;
        }
        obj_to_obj(obj, obj_to);
        load_otrigger(obj);
        last_cmd = 1;
      } else
        last_cmd = 0;
      break;

good code:
   case 'P':                   /* object to object */
      if ((obj_index[ZCMD.arg1].number < ZCMD.arg2) &&
          obj_load && (number(1, 100) >= ZCMD.arg4)) {
        obj = read_object(ZCMD.arg1, REAL);      /* This line was missed
*/
        if (!(obj_to = get_obj_num(ZCMD.arg3))) {
          ZONE_ERROR("target obj not found");
          break;
        }
        obj_to_obj(obj, obj_to);
        load_otrigger(obj);
        last_cmd = 1;
      } else
        last_cmd = 0;
      break;


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