Difference for common/loader.l from version 1.80 to 1.81


version 1.80 version 1.81
Line 1
 
Line 1
 %{  %{
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: loader.l,v 1.80 2006/05/21 12:37:11 akirschbaum Exp $";   *   "$Id: loader.l,v 1.81 2006/05/30 07:16:23 mwedel Exp $";
  */   */
   
 /*  /*
Line 1011
 
Line 1011
 ^casting_time{S} op->casting_time = FVAL;  ^casting_time{S} op->casting_time = FVAL;
 ^elevation{S} op->elevation = IVAL;  ^elevation{S} op->elevation = IVAL;
 ^smoothlevel{S} op->smoothlevel = IVAL;  ^smoothlevel{S} op->smoothlevel = IVAL;
   ^map_layer{S} {
        if (IVAL) op->map_layer = IVAL;
        else {
    int i;
    char *cp = yval();
   
    for (i=0; i < MAP_LAYERS; i++) {
        if (!strcasecmp(cp, map_layer_name[i])) {
    op->map_layer = i;
    break;
        }
    }
    if (i == MAP_LAYERS) {
        LOG(llevError,"Invalid map_layer name found: %s\n", cp);
    }
        }
    }
 ^client_type{S} op->client_type = IVAL;  ^client_type{S} op->client_type = IVAL;
 ^body_{A} set_body_info(op, yytext);  ^body_{A} set_body_info(op, yytext);
 ^duration{S} op->duration = IVAL;  ^duration{S} op->duration = IVAL;
Line 1890
 
Line 1907
   if(op->smoothlevel!=op2->smoothlevel)    if(op->smoothlevel!=op2->smoothlevel)
     FAST_SAVE_LONG(fastbuf,"smoothlevel ",op->smoothlevel,12);      FAST_SAVE_LONG(fastbuf,"smoothlevel ",op->smoothlevel,12);
   
     if(op->map_layer!=op2->map_layer)
       ADD_STRINGLINE_ENTRY(fastbuf,"map_layer ",map_layer_name[op->map_layer],10);
   
   if (op->current_weapon_script!=op2->current_weapon_script){    if (op->current_weapon_script!=op2->current_weapon_script){
     ADD_STRINGLINE_ENTRY(fastbuf,"current_weapon_script ",op->current_weapon_script,22);      ADD_STRINGLINE_ENTRY(fastbuf,"current_weapon_script ",op->current_weapon_script,22);
   };    };


Legend:
line(s) removed in v.1.80 
line(s) changed
 line(s) added in v.1.81

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