mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
e611fee4e5
commit
4fb76f67ae
|
@ -820,17 +820,17 @@ DEF_CONSOLE_CMD(ConScreenShot)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc < 2) {
|
if (argc > 3) return false;
|
||||||
_make_screenshot = 1;
|
|
||||||
} else {
|
_make_screenshot = 1;
|
||||||
if (strcmp(argv[1], "big") == 0)
|
if (argc > 1) {
|
||||||
|
if (strcmp(argv[1], "big") == 0 || (argc == 3 && strcmp(argv[2], "big") == 0))
|
||||||
_make_screenshot = 2;
|
_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();
|
IConsoleClose();
|
||||||
_make_screenshot = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue