]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
HUD: don't draw panels needing player data before it's received
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 6 Aug 2024 05:14:09 +0000 (15:14 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 6 Aug 2024 05:14:09 +0000 (15:14 +1000)
commit6f759bfe04c5741b577562489181ca407a7f0bc6
treed2feb2f49d3f70519c7192c815534c42002d87f0
parentf2e8ba850ca4bc170637aab319f6f8b4e1a804a1
HUD: don't draw panels needing player data before it's received

Fixes
"client VM warning: VM_CL_getstati: index(-1) is >=MAX_CL_STATS(256) or <0"
often appearing when connecting, with my hud_panel_ammo config.

It could also have been fixed by checking for (ammoType == 0) as well as
(ammoType == RES_NONE) but a many-cases fix is better than a
special-case fix.
qcsrc/client/main.qc
qcsrc/client/main.qh