accuracy box fix (will not appear again when spectating), and sound spam fixed again
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5785 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -613,11 +613,12 @@ void r_accuracy()
|
||||
if(i == GUN_CPISTOL || i == GUN_GRENADE || !accuracym[i].shots) continue;
|
||||
rows+=1;
|
||||
acc = 100.0f*(float)accuracym[i].hits/(float)accuracym[i].shots;
|
||||
defformatstring(x)("\f0%s: \f5%.1f%s (%d/%d)",weapstr(i),acc,"%",accuracym[i].hits,accuracym[i].shots);
|
||||
defformatstring(x)("\f5%5.1f%s (%3d/%3d) :\f0%s",acc,"%",accuracym[i].hits,accuracym[i].shots,weapstr(i));
|
||||
cols=max(cols,(int)strlen(x));
|
||||
lines.add(newstring(x));
|
||||
}
|
||||
if(rows<1) return;
|
||||
cols++;
|
||||
blendbox(x_offset, y_offset, spacing+x_offset+curfont->defaultw*cols, spacing+y_offset+curfont->defaulth*rows, true, -1);
|
||||
int x=0;
|
||||
loopv(lines)
|
||||
|
||||
Reference in New Issue
Block a user