Difference for socket/item.c from version 1.34 to 1.35


version 1.34 version 1.35
Line 1
 
Line 1
   
 /*  /*
  * static char *rcsid_item_c =   * static char *rcsid_item_c =
  *    "$Id: item.c,v 1.34 2005/08/17 06:58:11 mwedel Exp $";   *    "$Id: item.c,v 1.35 2005/09/03 00:20:01 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 617
 
Line 617
      return tmp;       return tmp;
   
     for(op = get_map_ob (pl->map, pl->x, pl->y); op; op = op->above)      for(op = get_map_ob (pl->map, pl->x, pl->y); op; op = op->above)
  if (op->count == count)   if (op->head != NULL && op->head->count == count)
        return op;
    else if (op->count == count)
      return op;       return op;
  else if (op->type == CONTAINER && pl->container == op)   else if (op->type == CONTAINER && pl->container == op)
      for(tmp = op->inv; tmp; tmp = tmp->below)       for(tmp = op->inv; tmp; tmp = tmp->below)
Line 634
 
Line 636
     object *op = esrv_get_ob_from_count(pl->ob, tag);      object *op = esrv_get_ob_from_count(pl->ob, tag);
   
     if (!op) {      if (!op) {
  LOG(llevDebug, "Player '%s' tried examine the unknown object (%ld)\n",   LOG(llevDebug, "Player '%s' tried to examine the unknown object (%ld)\n",
      pl->ob->name, tag);       pl->ob->name, tag);
  return;   return;
     }      }
Line 660
 
Line 662
     }      }
   
     if (!op) {      if (!op) {
  LOG(llevDebug, "Player '%s' tried apply the unknown object (%d)\n",   LOG(llevDebug, "Player '%s' tried to apply the unknown object (%d)\n",
    pl->ob->name, tag);     pl->ob->name, tag);
  return;   return;
     }      }


Legend:
line(s) removed in v.1.34 
line(s) changed
 line(s) added in v.1.35

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