Event messages not printing

After further discussion, it was revealed that the event printouts would stop
coming out if a new event was created.  Found that the constructor of the
event was clearing out the static info_msg flag all events used to test
for printing.  Removed the assignment in the constructor and set the
initial value of the info_msg flag to false at the declaration point.

Fixes #38
This commit is contained in:
Alex Lin 2015-04-06 08:19:16 -05:00
parent 9ab5406573
commit 24a081a32b

View File

@ -28,7 +28,7 @@ extern Trick::MemoryManager * trick_MM ;
/* static variables in the IPPythonEvent class */
Trick::IPPython * Trick::IPPythonEvent::ip ;
Trick::MTV * Trick::IPPythonEvent::mtv ;
bool Trick::IPPythonEvent::info_msg ;
bool Trick::IPPythonEvent::info_msg = false ;
Trick::condition_t::condition_t() {
enabled = 0 ;
@ -56,7 +56,6 @@ Trick::IPPythonEvent::IPPythonEvent() {
is_user_event = true ;
manual = false ;
manual_fired = false ;
info_msg = false ;
condition_count = 0 ;
cond_all = false ;
action_count = 0 ;