summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2010-08-15 23:32:36 +0000
committermichi_cc <michi_cc@openttd.org>2010-08-15 23:32:36 +0000
commit71ff3c4bb42a41422a628598abed68f7d94cb1df (patch)
tree9b2c052c19481a13bf68bb132034282f9b4f7fc1 /src/console_cmds.cpp
parent0796ba3d26e385b673a6f3beb32bfd8e03cf9f7e (diff)
downloadopenttd-71ff3c4bb42a41422a628598abed68f7d94cb1df.tar.xz
(svn r20508) -Add [FS#3973]: A new screenshot type that makes a zoomed-in screenshot of the visible viewport. (Eddi)
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index fd08ab99c..c1d1afdc1 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1226,9 +1226,10 @@ DEF_CONSOLE_CMD(ConAlias)
DEF_CONSOLE_CMD(ConScreenShot)
{
if (argc == 0) {
- IConsoleHelp("Create a screenshot of the game. Usage: 'screenshot [big | no_con] [file name]'");
- IConsoleHelp("'big' makes a screenshot of the whole map, 'no_con' hides the console to create "
- "the screenshot. Screenshots of whole map are always drawn without console");
+ IConsoleHelp("Create a screenshot of the game. Usage: 'screenshot [big | giant | no_con] [file name]'");
+ IConsoleHelp("'big' makes a zoomed-in screenshot of the visible area, 'giant' makes a screenshot of the "
+ "whole map, 'no_con' hides the console to create the screenshot. 'big' or 'giant' "
+ "screenshots are always drawn without console");
return true;
}
@@ -1240,6 +1241,10 @@ DEF_CONSOLE_CMD(ConScreenShot)
if (argc > 1) {
if (strcmp(argv[1], "big") == 0) {
/* screenshot big [filename] */
+ type = SC_ZOOMEDIN;
+ if (argc > 2) name = argv[2];
+ } else if (strcmp(argv[1], "giant") == 0) {
+ /* screenshot giant [filename] */
type = SC_WORLD;
if (argc > 2) name = argv[2];
} else if (strcmp(argv[1], "no_con") == 0) {