diff options
author | Darkvater <darkvater@openttd.org> | 2006-08-15 07:37:01 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-08-15 07:37:01 +0000 |
commit | 029105ea1cc21aad58c4163b414dc70dcd6c1819 (patch) | |
tree | 1467a28e1969e71421d080e091d5a09d204f07ce /console_cmds.c | |
parent | 4ad8d1c7a268b09d5f1313d597567f49c4eac38e (diff) | |
download | openttd-029105ea1cc21aad58c4163b414dc70dcd6c1819.tar.xz |
(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
Diffstat (limited to 'console_cmds.c')
-rw-r--r-- | console_cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c index f65854562..9ceca60cc 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -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; |