version 1.64 | | version 1.65 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.64 2006/07/02 15:32:34 tchize Exp $"; | | * "$Id: item.c,v 1.65 2006/07/27 22:37:17 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
case POWER_CRYSTAL: | | case POWER_CRYSTAL: |
if (op->stats.maxsp>1000){ /*higher capacity crystals*/ | | if (op->stats.maxsp>1000){ /*higher capacity crystals*/ |
i = (op->stats.maxsp%100)/10; | | i = (op->stats.maxsp%1000)/100; |
if (i) | | if (i) |
snprintf(buf,MAX_BUF,"(capacity %d.%dk). It is ",op->stats.maxsp/100,i); | | snprintf(buf,MAX_BUF,"(capacity %d.%dk). It is ",op->stats.maxsp/1000,i); |
else | | else |
snprintf(buf,MAX_BUF,"(capacity %dk). It is ",op->stats.maxsp/100); | | snprintf(buf,MAX_BUF,"(capacity %dk). It is ",op->stats.maxsp/1000); |
}else | | }else |
snprintf(buf,MAX_BUF,"(capacity %d). It is ",op->stats.maxsp); | | snprintf(buf,MAX_BUF,"(capacity %d). It is ",op->stats.maxsp); |
strcat(retbuf,buf); | | strcat(retbuf,buf); |