the big cvar value -> int_val audit. seems to work ok

This commit is contained in:
Bill Currie 2000-10-17 03:17:42 +00:00
parent 4478b82af4
commit 2682888425
50 changed files with 332 additions and 332 deletions

View file

@ -404,7 +404,7 @@ Underwater, lava, etc each has a color shift
*/
void V_SetContentsColor (int contents)
{
if (!v_contentblend->value) {
if (!v_contentblend->int_val) {
cl.cshifts[CSHIFT_CONTENTS] = cshift_empty;
return;
}
@ -686,13 +686,13 @@ void V_CalcRefdef (void)
// fudge position around to keep amount of weapon visible
// roughly equal with different FOV
if (scr_viewsize->value == 110)
if (scr_viewsize->int_val == 110)
view->origin[2] += 1;
else if (scr_viewsize->value == 100)
else if (scr_viewsize->int_val == 100)
view->origin[2] += 2;
else if (scr_viewsize->value == 90)
else if (scr_viewsize->int_val == 90)
view->origin[2] += 1;
else if (scr_viewsize->value == 80)
else if (scr_viewsize->int_val == 80)
view->origin[2] += 0.5;
if (view_message->flags & (PF_GIB|PF_DEAD) )