summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-07-28 21:51:00 +0000
committerbelugas <belugas@openttd.org>2006-07-28 21:51:00 +0000
commite4474db35f192ab0f4fbf4c0dfe6a8624bf77b33 (patch)
tree4a45bd28895269309999ea98b29f0c87389e361c /console_cmds.c
parentee91a457182a81d830f019357a5950b3b8139268 (diff)
downloadopenttd-e4474db35f192ab0f4fbf4c0dfe6a8624bf77b33.tar.xz
(svn r5626) CodeChange : Remove the global _make_screenshot and implement a more flexible mechanism
Simplification of the handling of the main_gui menus, Removal of repetitions and Hiding the internals of screenshots. Thanks to glx, Rubidium and Truelight for pointers
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/console_cmds.c b/console_cmds.c
index c3725d312..5d76687bc 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -19,6 +19,7 @@
#include "vehicle.h"
#include "station.h"
#include "strings.h"
+#include "screenshot.h"
#ifdef ENABLE_NETWORK
#include "table/strings.h"
@@ -914,10 +915,10 @@ DEF_CONSOLE_CMD(ConScreenShot)
if (argc > 3) return false;
- _make_screenshot = 1;
+ SetScreenshotType(SC_VIEWPORT);
if (argc > 1) {
if (strcmp(argv[1], "big") == 0 || (argc == 3 && strcmp(argv[2], "big") == 0))
- _make_screenshot = 2;
+ SetScreenshotType(SC_WORLD);
if (strcmp(argv[1], "no_con") == 0 || (argc == 3 && strcmp(argv[2], "no_con") == 0))
IConsoleClose();