Skip to content

Commit

Permalink
Fix 'draw weapon text' option not doing anything
Browse files Browse the repository at this point in the history
  • Loading branch information
vittorioromeo committed Feb 25, 2021
1 parent 40b74a0 commit f05b3cb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Quake/gl_rmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1541,11 +1541,14 @@ void R_RenderScene()
0.10f * textEnt.scale);
};

drawWeaponAmmoText(cl.mainhand_wpn_text, STAT_WEAPONCLIP,
STAT_WEAPONCLIPSIZE, STAT_AMMOCOUNTER);
if(vr_show_weapon_text.value)
{
drawWeaponAmmoText(cl.mainhand_wpn_text, STAT_WEAPONCLIP,
STAT_WEAPONCLIPSIZE, STAT_AMMOCOUNTER);

drawWeaponAmmoText(cl.offhand_wpn_text, STAT_WEAPONCLIP2,
STAT_WEAPONCLIPSIZE2, STAT_AMMOCOUNTER2);
drawWeaponAmmoText(cl.offhand_wpn_text, STAT_WEAPONCLIP2,
STAT_WEAPONCLIPSIZE2, STAT_AMMOCOUNTER2);
}

if(vr_leg_holster_model_enabled.value)
{
Expand Down

0 comments on commit f05b3cb

Please sign in to comment.