Possible fix for saving the "Fav priority" autoswitch setting.

git-svn-id: https://svn.eduke32.com/eduke32@3014 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2012-09-13 07:02:56 +00:00
parent 91e8613ae4
commit a7688523a1
2 changed files with 3 additions and 3 deletions

View file

@ -1083,12 +1083,12 @@ void M_DisplayMenus(void)
if (ud.weaponswitch & 4)
i = 2;
}
mgametext(d+40,yy,s[i],MENUHIGHLIGHT(io),2+8+16);
mgametext(d+45,yy,s[i],MENUHIGHLIGHT(io),2+8+16);
}
break;
case 6:
mgametext(d+40,yy,ud.weaponswitch&2?"On":"Off",MENUHIGHLIGHT(io),2+8+16);
mgametext(d+45,yy,ud.weaponswitch&2?"On":"Off",MENUHIGHLIGHT(io),2+8+16);
break;
default:

View file

@ -1392,7 +1392,7 @@ int32_t registerosdcommands(void)
{ "cl_viewbob", "cl_viewbob: enable/disable player head bobbing", (void *)&ud.viewbob, CVAR_BOOL, 0, 1 },
{ "cl_weaponsway", "cl_weaponsway: enable/disable player weapon swaying", (void *)&ud.weaponsway, CVAR_BOOL, 0, 1 },
{ "cl_weaponswitch", "cl_weaponswitch: enable/disable auto weapon switching", (void *)&ud.weaponswitch, CVAR_INT|CVAR_MULTI, 0, 3 },
{ "cl_weaponswitch", "cl_weaponswitch: enable/disable auto weapon switching", (void *)&ud.weaponswitch, CVAR_INT|CVAR_MULTI, 0, 7 },
{ "cl_angleinterpolation", "cl_angleinterpolation: enable/disable angle interpolation", (void *)&ud.angleinterpolation, CVAR_INT, 0, 256 },
{ "color", "color: changes player palette", (void *)&ud.color, CVAR_INT|CVAR_MULTI, 0, g_numRealPalettes },