From c2cd20713c13fe24152297e1ac5d049305125f5c Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 24 Mar 2018 23:14:03 +0100 Subject: [PATCH] fixed bug when creating static mappings of elements to graphics This bug showed up with wrong mapping for "mm_pacman.eating.right" (as defined in "src/conf_gfx.c") in auto-conf file "src/conf_e2g.c" being { EL_MM_PACMAN, ACTION_EATING, -1, FALSE, IMG_MM_PACMAN_EATING_RIGHT }, where it should correctly be { EL_MM_PACMAN, ACTION_EATING, MV_BIT_RIGHT, FALSE, IMG_MM_PACMAN_EATING_RIGHT }, instead. This problem was fixed by always using the calculated direction (which can still be "-1" if no direction is specified). --- build-scripts/create_element_defs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-scripts/create_element_defs.pl b/build-scripts/create_element_defs.pl index db4d42a9..2022b746 100755 --- a/build-scripts/create_element_defs.pl +++ b/build-scripts/create_element_defs.pl @@ -1573,7 +1573,7 @@ sub print_element_to_graphic_list { print_element_to_graphic_entry($element_without_action, $gfx_action, - '-1', + $gfx_direction, $gfx_crumbled, $graphic); } -- 2.34.1