diff options
author | Darkvater <Darkvater@openttd.org> | 2005-10-19 19:41:38 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-10-19 19:41:38 +0000 |
commit | 8c7e9f00dca97519829558c3832ca0d609b94c7e (patch) | |
tree | f10c593794d10f1266d57aa759b01bd9f98aa392 | |
parent | 7b52c5f6bb1c562bdf48b201d096b0499cde5301 (diff) | |
download | openttd-8c7e9f00dca97519829558c3832ca0d609b94c7e.tar.xz |
(svn r3068) - Feature: make it possible to create a screenshot from the console that is both big and has no console, or any combination of.
-rw-r--r-- | console_cmds.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/console_cmds.c b/console_cmds.c index b4926e1b0..38c8a78cb 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -820,17 +820,17 @@ DEF_CONSOLE_CMD(ConScreenShot) return true; } - if (argc < 2) { - _make_screenshot = 1; - } else { - if (strcmp(argv[1], "big") == 0) + if (argc > 3) return false; + + _make_screenshot = 1; + if (argc > 1) { + if (strcmp(argv[1], "big") == 0 || (argc == 3 && strcmp(argv[2], "big") == 0)) _make_screenshot = 2; - if (strcmp(argv[1], "no_con") == 0) { + if (strcmp(argv[1], "no_con") == 0 || (argc == 3 && strcmp(argv[2], "no_con") == 0)) IConsoleClose(); - _make_screenshot = 1; - } } + return true; } |