From 35043a95b639c2bbf3e51d8e70fd23c88d9bd53d Mon Sep 17 00:00:00 2001 From: mrsmola Date: Sun, 18 Feb 2007 10:17:36 +0000 Subject: [PATCH] added a debug-writer for debugging to console --- src/debug.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/debug.c b/src/debug.c index 8b531ca4..d76b4def 100644 --- a/src/debug.c +++ b/src/debug.c @@ -49,6 +49,11 @@ debug_action(const gchar *text) option_set_int("int_debug", &constants, value); game_gui_print_message("Debug value set to %d.", value); } + else if(g_str_has_prefix(text, "writer")) + { + option_set_int("int_debug_writer", &constants, value); + game_gui_print_message("Debug writer value set to %d.", value); + } else if(g_str_has_prefix(text, "cap")) { current_user.tm->stadium.capacity += value; @@ -110,6 +115,7 @@ debug_action(const gchar *text) { g_print("Debug options:\n" "deb \t set debug value\n" + "writer \t set debug-writer value\n" "cap \t change stadium capacity\n" "saf \t change stadium safety\n" "mon \t change money\n"