version 1.189 | | version 1.190 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.189 2006/01/01 13:03:07 akirschbaum Exp $"; | | * "$Id: player.c,v 1.190 2006/01/08 23:57:19 qal21 Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if ((query_cost(tmp, op, F_TRUE)*100 / (tmp->weight * MAX(tmp->nrof, 1))) >= wvratio) | | if ((query_cost(tmp, op, F_TRUE)*100 / (tmp->weight * MAX(tmp->nrof, 1))) >= wvratio) |
{ | | { |
pick_up(op, tmp); | | pick_up(op, tmp); |
if(0)fprintf(stderr,"HIGH WEIGHT/VALUE ["); | | #if 0 |
| | fprintf(stderr,"HIGH WEIGHT/VALUE ["); |
if(tmp->name!=NULL) { | | if(tmp->name!=NULL) { |
if(0)fprintf(stderr,"%s", tmp->name); | | fprintf(stderr,"%s", tmp->name); |
} | | } |
else if(0)fprintf(stderr,"%s",tmp->arch->name); | | else fprintf(stderr,"%s",tmp->arch->name); |
if(0)fprintf(stderr,",%d] = ", tmp->type); | | fprintf(stderr,",%d] = ", tmp->type); |
if(0)fprintf(stderr,"%d\n",(int)(query_cost(tmp,op,F_TRUE)*100 / (tmp->weight * MAX(tmp->nrof,1)))); | | fprintf(stderr,"%d\n",(int)(query_cost(tmp,op,F_TRUE)*100 / (tmp->weight * MAX(tmp->nrof,1)))); |
| | #endif |
continue; | | continue; |
} | | } |
} | | } |