- for (i = 0;i < l;i++)
- {
- k = fragsort[i];
- s = &cl.scores[k];
- if (!s->name[0])
- continue;
-
- // draw background
- c = (qbyte *)&palette_complete[(s->colors & 0xf0) + 8];
- DrawQ_Fill ( x + 8, y+1, 88, 3, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
- c = (qbyte *)&palette_complete[((s->colors & 15)<<4) + 8];
- DrawQ_Fill ( x + 8, y+4, 88, 3, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
-
- total = cl.time - s->entertime;
- minutes = (int)total/60;
- n = total - minutes*60;
- tens = '0' + n/10;
- units = '0' + n%10;
-
- fph = total ? (int) ((float) s->frags * 3600.0 / total) : 0;
- if (fph < -999) fph = -999;
- if (fph > 9999) fph = 9999;
-
- // put it together
- sprintf (num, "%c %4i:%4i %4i:%c%c %s", k == cl.viewentity - 1 ? 12 : ' ', (int) s->frags, fph, minutes, tens, units, s->name);
- DrawQ_String(x, y, num, 0, 8, 8, 1, 1, 1, 1, 0);
-
- y += 8;
- }