Difference for common/loader.l from version 1.38 to 1.39


version 1.38 version 1.39
Line 1
 
Line 1
 %{  %{
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: loader.l,v 1.38 2003/02/12 06:30:25 mwedel Exp $";   *   "$Id: loader.l,v 1.39 2003/02/14 05:50:29 garbled Exp $";
  */   */
   
 /*  /*
Line 132
 
Line 132
     /* objects now have a materialname.  try to patch it in */      /* objects now have a materialname.  try to patch it in */
     if (!(IS_WEAPON(op) && op->level > 0)) {      if (!(IS_WEAPON(op) && op->level > 0)) {
         if (op->map != NULL)          if (op->map != NULL)
             set_materialname(op, op->map->difficulty);              set_materialname(op, op->map->difficulty, NULL);
         else          else
             set_materialname(op, 5);              set_materialname(op, 5, NULL);
     }      }
     /* back out the materialname from op->name very limited subset of obs */      /* back out the materialname from op->name very limited subset of obs */
     if ((IS_WEAPON(op) || IS_ARMOR(op)) && op->name && op->materialname) {      if ((IS_WEAPON(op) || IS_ARMOR(op)) && op->name && op->materialname) {
Line 573
 
Line 573
 ^can_cut{S} { /* just ignore for now */ }  ^can_cut{S} { /* just ignore for now */ }
 ^can_dam_armour{S} { }  ^can_dam_armour{S} { }
 ^weapontype{S} op->weapontype = IVAL;  ^weapontype{S} op->weapontype = IVAL;
   ^tooltype{S}            op->tooltype = IVAL;
 ^casting_speed{S} op->casting_speed = FVAL;  ^casting_speed{S} op->casting_speed = FVAL;
 ^elevation{S} op->elevation = IVAL;  ^elevation{S} op->elevation = IVAL;
 ^client_type{S} op->client_type = IVAL;  ^client_type{S} op->client_type = IVAL;
Line 1585
 
Line 1586
     sprintf(buf2,"weapontype %d\n",op->weapontype);      sprintf(buf2,"weapontype %d\n",op->weapontype);
     strcat(buf,buf2);      strcat(buf,buf2);
   }    }
     if(op->tooltype && op->tooltype!=op2->tooltype) {
       sprintf(buf2,"tooltype %d\n",op->tooltype);
       strcat(buf,buf2);
     }
   if (op->elevation && op->elevation != op2->elevation) {    if (op->elevation && op->elevation != op2->elevation) {
     sprintf(buf2,"elevation %d\n", op->elevation);      sprintf(buf2,"elevation %d\n", op->elevation);
     strcat(buf,buf2);      strcat(buf,buf2);


Legend:
line(s) removed in v.1.38 
line(s) changed
 line(s) added in v.1.39

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