(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.
authorDarkvater
Wed, 19 Oct 2005 19:41:38 +0000
changeset 2539 20b0e2a6b9b0
parent 2538 81e192bfcf10
child 2540 dbaba9ff9b94
(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.
console_cmds.c
--- a/console_cmds.c	Wed Oct 19 19:38:35 2005 +0000
+++ b/console_cmds.c	Wed Oct 19 19:41:38 2005 +0000
@@ -820,17 +820,17 @@
 		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;
 }