Difference for server/player.c from version 1.49 to 1.50


version 1.49 version 1.50
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.49 2001/04/09 00:56:54 michtoen Exp $";   *   "$Id: player.c,v 1.50 2001/04/09 06:59:46 mwedel Exp $";
  */   */
   
 /*  /*
Line 151
 
Line 151
 #ifdef LINKED_SKILL_LIST  #ifdef LINKED_SKILL_LIST
     p->ob->sk_list = NULL;      p->ob->sk_list = NULL;
 #endif  #endif
 #ifdef ALLOW_SKILLS            
  p->last_skill_index = 0;  
  for(i=0;i<LAST_MAX_EXP_CAT;i++)  
  {  
  p->last_skill_exp[i] = p->last_skill_id[i] = 0;  
  p->last_skill_level[i] =0;  
  p->last_skill_ob[i] = NULL;  
  }  
 #endif   
     if(QUERY_FLAG(op,FLAG_READY_SKILL))      if(QUERY_FLAG(op,FLAG_READY_SKILL))
         CLEAR_FLAG(op,FLAG_READY_SKILL);           CLEAR_FLAG(op,FLAG_READY_SKILL);
     p->socket.update_look=0;      p->socket.update_look=0;
Line 1300
 
Line 1291
   
  /* IF we found a key, do some extra work */   /* IF we found a key, do some extra work */
  if (key) {   if (key) {
        object *container=key->env;
   
      play_sound_map(op->map, op->x, op->y, SOUND_OPEN_DOOR);       play_sound_map(op->map, op->x, op->y, SOUND_OPEN_DOOR);
      if(action_makes_visible(op)) make_visible(op);       if(action_makes_visible(op)) make_visible(op);
      if(tmp->inv && tmp->inv->type ==RUNE) spring_trap(tmp->inv,op);       if(tmp->inv && tmp->inv->type ==RUNE) spring_trap(tmp->inv,op);
Line 1313
 
Line 1306
      }       }
      /* Do this after we print the message */       /* Do this after we print the message */
      decrease_ob(key); /* Use up one of the keys */       decrease_ob(key); /* Use up one of the keys */
        /* Need to update the weight the container the key was in */
        if (container != op)
    esrv_update_item(UPD_WEIGHT, op, container);
      return; /* Nothing more to do below */       return; /* Nothing more to do below */
  } else if (tmp->type==LOCKED_DOOR) {   } else if (tmp->type==LOCKED_DOOR) {
      /* Might as well return now - no other way to open this */       /* Might as well return now - no other way to open this */


Legend:
line(s) removed in v.1.49 
line(s) changed
 line(s) added in v.1.50

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