mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 10:30:00 +00:00
engine: client: cl_netgraph: added clamp for bars height
This commit is contained in:
parent
0cef18af86
commit
ce8e5880e2
@ -260,7 +260,7 @@ static void NetGraph_DrawTimes( wrect_t rect, int x, int w )
|
|||||||
for( a = 0; a < w; a++ )
|
for( a = 0; a < w; a++ )
|
||||||
{
|
{
|
||||||
i = ( cls.netchan.outgoing_sequence - a ) & NET_TIMINGS_MASK;
|
i = ( cls.netchan.outgoing_sequence - a ) & NET_TIMINGS_MASK;
|
||||||
h = ( netstat_cmdinfo[i].cmd_lerp / 3.0f ) * NETGRAPH_LERP_HEIGHT;
|
h = Q_min(( netstat_cmdinfo[i].cmd_lerp / 3.0f ) * NETGRAPH_LERP_HEIGHT, net_graphheight->value * 0.7f);
|
||||||
|
|
||||||
fill.left = x + w - a - 1;
|
fill.left = x + w - a - 1;
|
||||||
fill.right = fill.bottom = 1;
|
fill.right = fill.bottom = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user