mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
the big cvar value -> int_val audit. seems to work ok
This commit is contained in:
parent
4478b82af4
commit
2682888425
50 changed files with 332 additions and 332 deletions
|
@ -524,8 +524,8 @@ void Sbar_DrawInventory (void)
|
|||
qboolean headsup;
|
||||
qboolean hudswap;
|
||||
|
||||
headsup = !(cl_sbar->value || scr_viewsize->value<100);
|
||||
hudswap = cl_hudswap->value; // Get that nasty float out :)
|
||||
headsup = !(cl_sbar->int_val || scr_viewsize->int_val<100);
|
||||
hudswap = cl_hudswap->int_val;
|
||||
|
||||
if (!headsup)
|
||||
Sbar_DrawPic (0, -24, sb_ibar);
|
||||
|
@ -736,7 +736,7 @@ Sbar_DrawNormal
|
|||
*/
|
||||
void Sbar_DrawNormal (void)
|
||||
{
|
||||
if (cl_sbar->value || scr_viewsize->value<100)
|
||||
if (cl_sbar->int_val || scr_viewsize->int_val<100)
|
||||
Sbar_DrawPic (0, 0, sb_sbar);
|
||||
|
||||
// armor
|
||||
|
@ -788,7 +788,7 @@ void Sbar_Draw (void)
|
|||
qboolean headsup;
|
||||
char st[512];
|
||||
|
||||
headsup = !(cl_sbar->value || scr_viewsize->value<100);
|
||||
headsup = !(cl_sbar->int_val || scr_viewsize->int_val<100);
|
||||
if ((sb_updates >= vid.numpages) && !headsup)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue