From: Holger Schemel Date: Thu, 14 Mar 2019 07:35:00 +0000 (+0100) Subject: added some more debug output for triggered global animations X-Git-Tag: 4.1.3.0~35 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=bd0a11ca4033f0d78d81895d4a511cad928a54fb added some more debug output for triggered global animations --- diff --git a/src/anim.c b/src/anim.c index fcf7ef36..b79959df 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1072,7 +1072,7 @@ static boolean clickConsumed(struct GlobalAnimPartControlInfo *part) static void InitGlobalAnim_Triggered(struct GlobalAnimPartControlInfo *part, boolean *anything_clicked, boolean *any_event_action, - int event_value) + int event_value, char *info_text) { struct GlobalAnimControlInfo *ctrl = &global_anim_ctrl[part->mode_nr]; @@ -1103,8 +1103,8 @@ static void InitGlobalAnim_Triggered(struct GlobalAnimPartControlInfo *part, *anything_clicked = clickConsumed(part); // click was on "part"! #if DEBUG_ANIM_EVENTS - printf("::: => %d.%d TRIGGERED BY %d.%d\n", - part2->old_anim_nr + 1, part2->old_nr + 1, + printf("::: => %d.%d TRIGGERED BY %s OF %d.%d\n", + part2->old_anim_nr + 1, part2->old_nr + 1, info_text, part->old_anim_nr + 1, part->old_nr + 1); #endif #if 0 @@ -1145,7 +1145,7 @@ static void HandleGlobalAnimEvent(struct GlobalAnimPartControlInfo *part, // check if this event is defined to trigger other animations InitGlobalAnim_Triggered(part, &anything_clicked, &any_event_action, - event_value); + event_value, info_text); } static int HandleGlobalAnim_Part(struct GlobalAnimPartControlInfo *part, @@ -1732,7 +1732,7 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, boolean clicked) // check if this click is defined to trigger other animations InitGlobalAnim_Triggered(part, &anything_clicked, &any_event_action, - ANIM_EVENT_CLICK); + ANIM_EVENT_CLICK, "CLICK"); } } }