Difference for crossedit/Attr.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 52
 
Line 52
 #define T_Unique    (1<<I_Unique)  #define T_Unique    (1<<I_Unique)
 #define T_WeightL   (1<<I_WeightL)  #define T_WeightL   (1<<I_WeightL)
 #define T_Brand     (1<<I_Brand)  #define T_Brand     (1<<I_Brand)
   #define T_Maker     (1<<I_Maker)
   
 /*** types ar Combinations ***/  /*** types ar Combinations ***/
 #define T_Exit      (T_Path | T_X | T_Y )  #define T_Exit      (T_Path | T_X | T_Y )
Line 86
 
Line 87
   
     switch (tmp->type) {      switch (tmp->type) {
     case TELEPORTER:      case TELEPORTER:
    return T_Connected|T_Exit;
     case EXIT:      case EXIT:
  return T_Exit;   return T_Exit;
     case TRAPDOOR:      case TRAPDOOR:
Line 95
 
Line 97
     case BUTTON:      case BUTTON:
     case TRIGGER_BUTTON:      case TRIGGER_BUTTON:
  return T_Button;   return T_Button;
    case CREATOR:
    return T_Connected|T_Maker;
     case GATE:      case GATE:
     case HANDLE:      case HANDLE:
     case TIMED_GATE:      case TIMED_GATE:
Line 112
 
Line 116
     case BOOK:      case BOOK:
     case SIGN:      case SIGN:
  return T_Sign;   return T_Sign;
    case MARKER:
     case LOCKED_DOOR:      case LOCKED_DOOR:
  return T_Lockdoor;   return T_Lockdoor;
     case SPECIAL_KEY:      case SPECIAL_KEY:
Line 121
 
Line 126
     case DIRECTOR:      case DIRECTOR:
     case FIREWALL:      case FIREWALL:
  return (NUM_ANIMATIONS(tmp) > 0)    return (NUM_ANIMATIONS(tmp) > 0)
      ? T_Director : T_Default;       ? T_Director : T_Connected;
     case CONTAINER:      case CONTAINER:
  return T_Container;   return T_Container;
     default:      default:
Line 228
 
Line 233
  sprintf(str,"%s",ob->race);   sprintf(str,"%s",ob->race);
 }  }
   
   /*** brand ***/
   static void getMakes (object *ob, char *str, XtPointer c) {
       if(!ob->other_arch)
    sprintf(str,NotUsed);
       else
    sprintf(str,"%s",ob->other_arch->name);
   }
   
 /*  /*
  * putValue functions   * putValue functions
  *   *
Line 334
 
Line 347
     }      }
 }  }
   
   static void putMakes (object *ob, char *str, XtPointer c) {
       if(!strcmp(str,NotUsed))
    ob->other_arch = NULL;
       else {
    ob->other_arch = find_archetype(str);
       }
   }
   
   
 /**********************************************************************  /**********************************************************************
  * tags   * tags
  **********************************************************************/   **********************************************************************/
Line 355
 
Line 377
     {"Unique",         TypeToggle, getUnique, putUnique},      {"Unique",         TypeToggle, getUnique, putUnique},
     {"WeightL",         TypeString, getWeightL, putWeightL},      {"WeightL",         TypeString, getWeightL, putWeightL},
     {"Brand",         TypeString, getBrand, putBrand},      {"Brand",         TypeString, getBrand, putBrand},
    {"Makes",  TypeString, getMakes, putMakes},  /* other_arch */
     {NULL, 0, 0}      {NULL, 0, 0}
 };  };
   


Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:49