From 82e9bc049562012605f126a4d968ef8a1927b67b Mon Sep 17 00:00:00 2001 From: void Date: Wed, 12 Aug 2009 22:09:36 +0200 Subject: [PATCH] Non-Python relevant debug register interceptors are now removed if you run CRAW without a Python script --- craw/interceptor.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/craw/interceptor.cpp b/craw/interceptor.cpp index d4fc623..8c8f653 100644 --- a/craw/interceptor.cpp +++ b/craw/interceptor.cpp @@ -252,11 +252,14 @@ void d2client(unsigned base) debug_register_entries.push_back(debug_register_entry(unit_is_selectable_address, &debug_register_unit_selection)); main_debug_register_entries.push_back(debug_register_data(light_handler_address)); - main_debug_register_entries.push_back(debug_register_data(automap_loop_address)); - main_debug_register_entries.push_back(debug_register_data(packet_reception_interceptor_address)); - //main_debug_register_entries.push_back(debug_register_data(add_unit_address1)); - main_debug_register_entries.push_back(debug_register_data(item_handler_call_address)); - //main_debug_register_entries.push_back(debug_register_data(unit_is_selectable_address)); + if(!python_script.empty()) + { + main_debug_register_entries.push_back(debug_register_data(automap_loop_address)); + main_debug_register_entries.push_back(debug_register_data(packet_reception_interceptor_address)); + //main_debug_register_entries.push_back(debug_register_data(add_unit_address1)); + main_debug_register_entries.push_back(debug_register_data(item_handler_call_address)); + //main_debug_register_entries.push_back(debug_register_data(unit_is_selectable_address)); + } set_own_context(main_debug_register_entries); } -- 2.11.4.GIT