Difference for common/button.c from version 1.11 to 1.12


version 1.11 version 1.12
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_button_c =   * static char *rcsid_button_c =
  *   "$Id: button.c,v 1.11 2001/03/09 00:42:58 avogl Exp $";   *   "$Id: button.c,v 1.12 2001/03/20 05:46:18 mwedel Exp $";
  */   */
   
 /*  /*
Line 555
 
Line 555
  if(QUERY_FLAG(tmp, FLAG_UNAGGRESSIVE))   if(QUERY_FLAG(tmp, FLAG_UNAGGRESSIVE))
  CLEAR_FLAG(tmp, FLAG_UNAGGRESSIVE);   CLEAR_FLAG(tmp, FLAG_UNAGGRESSIVE);
  if(QUERY_FLAG(tmp, FLAG_FRIENDLY)) {    if(QUERY_FLAG(tmp, FLAG_FRIENDLY)) {
  tmp->owner = 0;  
  CLEAR_FLAG(tmp, FLAG_FRIENDLY);   CLEAR_FLAG(tmp, FLAG_FRIENDLY);
  remove_friendly_object(tmp);   remove_friendly_object(tmp);
  tmp->move_type = 0;   tmp->move_type = 0;
    /* lots of checks here, but want to make sure we don't
    * dereference a null value
    */
    if (tmp->type == GOLEM && tmp->owner && tmp->owner->type==PLAYER &&
        tmp->owner->contr->golem==tmp)
    tmp->owner->contr->golem=NULL;
    tmp->owner = 0;
  }   }
  break;   break;
    case 1: /* angry -- get neutral monsters mad */      case 1: /* angry -- get neutral monsters mad */


Legend:
line(s) removed in v.1.11 
line(s) changed
 line(s) added in v.1.12

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