seems like i'm missing something real small here but nonetheless i cant find it.
added :
when calling that function in
it returns the exact same figure for both :(
11.4k/11.4k when ch has 30,000 max_hit.
thanks
-typ
added :
char *short_num(int num)
{
static char buf[12];
buf[0] = '\0';
if (num <= 9999)
{
sprintf(buf, "%d", num);
return buf;
}
sprintf(buf, "%5.1f%c", (float)num / 1000, num>1000000 ? 'm' : 'k' );
return buf;
}
when calling that function in
ch_printf(ch, "%-4s/%-4s ", short_num(ch->hit), short_num(ch->max_hit) ); it returns the exact same figure for both :(
11.4k/11.4k when ch has 30,000 max_hit.
thanks
-typ