From: terencehill Date: Sat, 19 Mar 2011 23:27:55 +0000 (+0100) Subject: Fix no weapon displayed in the HUD if cl_weaponpriority is set to "" before connectin... X-Git-Tag: xonotic-v0.5.0~305^2~28^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc76cf296e064b0ce54a5c319022fc1f45f4ba8e;p=xonotic%2Fxonotic-data.pk3dir.git Fix no weapon displayed in the HUD if cl_weaponpriority is set to "" before connecting to a new server --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 1053c5e5f..4dfb60c2d 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1619,7 +1619,7 @@ void HUD_Weapons(void) } // TODO make this configurable - if(weaponorder_bypriority != autocvar_cl_weaponpriority) + if(weaponorder_bypriority != autocvar_cl_weaponpriority || !weaponorder[0]) { if(weaponorder_bypriority) strunzone(weaponorder_bypriority);