cvar set audit (I thought I got all of this when I did the value -> int_val

audit, oh well)
This commit is contained in:
Bill Currie 2000-10-17 22:43:48 +00:00
parent ff1ffe2212
commit 4c3d4b4dcb
4 changed files with 8 additions and 8 deletions

View file

@ -605,9 +605,9 @@ void V_CalcIntermissionRefdef (void)
// allways idle in intermission // allways idle in intermission
old = v_idlescale->value; old = v_idlescale->value;
v_idlescale->value = 1; Cvar_SetValue (v_idlescale, 1);
V_AddIdle (); V_AddIdle ();
v_idlescale->value = old; Cvar_SetValue (v_idlescale, old);
} }
/* /*

View file

@ -1102,10 +1102,10 @@ void VID_CheckModedescFixup (int mode)
stretch = modelist[mode].stretched; stretch = modelist[mode].stretched;
if (vid_config_x->int_val < (320 << stretch)) if (vid_config_x->int_val < (320 << stretch))
vid_config_x->int_val = 320 << stretch; Cvar_SetValue (vid_config_x, 320 << stretch);
if (vid_config_y->int_val < (200 << stretch)) if (vid_config_y->int_val < (200 << stretch))
vid_config_y->int_val = 200 << stretch; Cvar_SetValue (vid_config_y, 200 << stretch);
x = vid_config_x->int_val; x = vid_config_x->int_val;
y = vid_config_y->int_val; y = vid_config_y->int_val;

View file

@ -411,14 +411,14 @@ VID_SetMode(int modenum, unsigned char *palette)
int err; int err;
if ((modenum >= num_modes) || (modenum < 0) || !modes[modenum].width){ if ((modenum >= num_modes) || (modenum < 0) || !modes[modenum].width){
vid_mode->int_val = (float)current_mode; Cvar_SetValue (vid_mode, current_mode);
Con_Printf("No such video mode: %d\n",modenum); Con_Printf("No such video mode: %d\n",modenum);
return 0; return 0;
} }
vid_mode->int_val = modenum; Cvar_SetValue (vid_mode, modenum);
current_mode=modenum; current_mode=modenum;

View file

@ -1049,10 +1049,10 @@ void VID_CheckModedescFixup (int mode)
stretch = modelist[mode].stretched; stretch = modelist[mode].stretched;
if (vid_config_x->int_val < (320 << stretch)) if (vid_config_x->int_val < (320 << stretch))
vid_config_x->int_val = 320 << stretch; Cvar_SetValue (vid_config_x, 320 << stretch);
if (vid_config_y->int_val < (200 << stretch)) if (vid_config_y->int_val < (200 << stretch))
vid_config_y->int_val = 200 << stretch; Cvar_SetValue (vid_config_y, 200 << stretch);
x = vid_config_x->int_val; x = vid_config_x->int_val;
y = vid_config_y->int_val; y = vid_config_y->int_val;