(svn r5908) - Codechange (r5903): Move the retrieval of the new value of a patch to console_cmds.c, so there is no need for that function in settings.c

This commit is contained in:
Darkvater
2006-08-15 07:37:01 +00:00
parent 5cf43b9f3c
commit 397a0a32be
3 changed files with 7 additions and 12 deletions

View File

@@ -1342,7 +1342,8 @@ DEF_CONSOLE_CMD(ConPatch)
if (argc == 2) {
IConsoleGetPatchSetting(argv[1]);
} else {
IConsoleSetPatchSetting(argv[1], argv[2]);
int32 val;
if (GetArgumentInteger(&val, argv[2])) IConsoleSetPatchSetting(argv[1], val);
}
return true;