X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fweapons.qc;h=b51c5761d77819902787d194525dd2301093b751;hb=ba387c2e8ff4a160328ec6dcbd9e4c0b1058e905;hp=7ac8b8dae6bf20cc8da807fbba6ef7733dff874d;hpb=ac7deb97b1a0e73ceea4684be73e72912fb3f1aa;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud/panel/weapons.qc b/qcsrc/client/hud/panel/weapons.qc index 7ac8b8dae..b51c5761d 100644 --- a/qcsrc/client/hud/panel/weapons.qc +++ b/qcsrc/client/hud/panel/weapons.qc @@ -127,7 +127,7 @@ void HUD_Weapons() int weapon_count, weapon_id; int row, column, rows = 0, columns = 0; bool vertical_order = true; - float aspect = autocvar_hud_panel_weapons_aspect; + float aspect = max(0.001, autocvar_hud_panel_weapons_aspect); float timeout = autocvar_hud_panel_weapons_timeout; float timein_effect_length = autocvar_hud_panel_weapons_timeout_speed_in; //? 0.375 : 0); @@ -581,6 +581,7 @@ void HUD_Weapons() if(a > 0) { + // TODO: registry handles switch (it.ammo_type) { case RES_SHELLS: ammo_full = autocvar_hud_panel_weapons_ammo_full_shells; break;