fixed bug when creating static mappings of elements to graphics
authorHolger Schemel <info@artsoft.org>
Sat, 24 Mar 2018 22:14:03 +0000 (23:14 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 24 Mar 2018 22:14:03 +0000 (23:14 +0100)
commitc2cd20713c13fe24152297e1ac5d049305125f5c
treeac2f5e2e9098f0b42855fbbc055ad2eb4d1492c0
parent14801844faf14be284c590b66f030c6bf7cea5c2
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