- Fixed: You couldn't easily play with the compatibility options menu during

the title screen, because the demo loop reset the server cvars after each
  attempt to play a demo, even though the demos never actually played. The
  proper long-term solution would be to make shadow copies of all cvars
  touched by demos and use those for the demo and the real things for
  everything else, but this should do for now and is a lot easier.


SVN r1463 (trunk)
This commit is contained in:
Randy Heit 2009-03-04 23:19:46 +00:00
commit ee1806e9b2
4 changed files with 20 additions and 2 deletions

View file

@ -1299,6 +1299,17 @@ void C_RestoreCVars (void)
for (i = numbackedup; i; i--, backup++)
{
cvar_set (backup->name, backup->string);
}
C_ForgetCVars();
}
void C_ForgetCVars (void)
{
struct backup_s *backup = CVarBackups;
int i;
for (i = numbackedup; i; i--, backup++)
{
delete[] backup->name;
delete[] backup->string;
backup->name = backup->string = NULL;