DEADSOFTWARE

save r_maxfps to the config
[d2df-sdl.git] / src / game / g_console.pas
index c38b476408f08dc42aba24a0b6ca04e000fc4e06..b4842f5eef671e325dd6b17c5cbeb010c729525b 100644 (file)
@@ -953,6 +953,7 @@ begin
   AddCommand('quit', SystemCommands);
   AddCommand('exit', SystemCommands);
   AddCommand('r_reset', SystemCommands);
+  AddCommand('r_maxfps', SystemCommands);
   AddCommand('g_language', SystemCommands);
 
   AddCommand('bind', BindCommands);
@@ -2129,6 +2130,7 @@ begin
     end
   end;
 
+  WriteLn(f, 'r_maxfps ', gMaxFPS);
   WriteLn(f, 'r_reset');
   CloseFile(f)
 end;