mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
[client] Ensure status char buffers are cleared
Fixes uninitialized values when hud_pl is enabled for overkill in qw (pl is never updated, so it never gets set).
This commit is contained in:
parent
3d52caadec
commit
d10cfb348e
1 changed files with 4 additions and 4 deletions
|
@ -2264,10 +2264,10 @@ init_views (void)
|
||||||
hud_ping_view = sbar_view (0, 8, 48, 0, grav_northwest, hud_stuff_view);
|
hud_ping_view = sbar_view (0, 8, 48, 0, grav_northwest, hud_stuff_view);
|
||||||
hud_pl_view = sbar_view (56, 8, 48, 0, grav_northwest, hud_stuff_view);
|
hud_pl_view = sbar_view (56, 8, 48, 0, grav_northwest, hud_stuff_view);
|
||||||
|
|
||||||
time_buff = Draw_CreateBuffer (8, 1);
|
Draw_ClearBuffer (time_buff = Draw_CreateBuffer (8, 1));
|
||||||
fps_buff = Draw_CreateBuffer (10, 1);
|
Draw_ClearBuffer (fps_buff = Draw_CreateBuffer (10, 1));
|
||||||
ping_buff = Draw_CreateBuffer (6, 1);
|
Draw_ClearBuffer (ping_buff = Draw_CreateBuffer (6, 1));
|
||||||
pl_buff = Draw_CreateBuffer (6, 1);
|
Draw_ClearBuffer (pl_buff = Draw_CreateBuffer (6, 1));
|
||||||
|
|
||||||
for (int i = 0; i < MAX_PLAYERS; i++) {
|
for (int i = 0; i < MAX_PLAYERS; i++) {
|
||||||
sb_fph[i] = Draw_CreateBuffer (3, 1);
|
sb_fph[i] = Draw_CreateBuffer (3, 1);
|
||||||
|
|
Loading…
Reference in a new issue