Difference for common/loader.l from version 1.36 to 1.37


version 1.36 version 1.37
Line 1
 
Line 1
 %{  %{
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: loader.l,v 1.36 2003/01/30 00:07:08 garbled Exp $";   *   "$Id: loader.l,v 1.37 2003/02/07 06:57:17 garbled Exp $";
  */   */
   
 /*  /*
Line 110
 
Line 110
  */   */
 static void check_loaded_object(object *op) {  static void check_loaded_object(object *op) {
     int ip;      int ip;
       char buf[MAX_BUF], *p;
       materialtype_t *mt;
   
     /* We do some specialized handling to handle legacy cases of name_pl.      /* We do some specialized handling to handle legacy cases of name_pl.
      * If the object doesn't have a name_pl, we just use the object name -       * If the object doesn't have a name_pl, we just use the object name -
Line 133
 
Line 135
         else          else
             set_materialname(op, 5);              set_materialname(op, 5);
     }      }
       /* back out the materialname from op->name very limited subset of obs */
       if ((IS_WEAPON(op) || IS_ARMOR(op)) && op->name && op->materialname) {
           mt = name_to_material(op->materialname);
           if (mt && strstr(op->name, mt->description) &&
        strstr(op->name, mt->description) == op->name) {
        sprintf(buf, "%s", op->name);
        p = buf + strlen(mt->description) + 1;
        free_string(op->name);
        op->name = add_string(p);
        sprintf(buf, "%s", op->name_pl);
        p = buf + strlen(mt->description) + 1;
        free_string(op->name_pl);
        op->name_pl = add_string(p);
    }
       }
   
   
     /* We changed last_heal to gen_sp_armour, which is what it      /* We changed last_heal to gen_sp_armour, which is what it
      * really does for many objects.  Need to catch any in maps       * really does for many objects.  Need to catch any in maps


Legend:
line(s) removed in v.1.36 
line(s) changed
 line(s) added in v.1.37

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:12