AnimationTemplate requiring KeyEventName

Hello,

I've just updated my working copy and I got some problems with the animations.

The orxAnim_CreateFromConfig() updates the event counter based on the config definitions. The problem is the new code just after that when it checks if(u32EventCounter > 1). Now the AnimationTemplate require the KeyEventName to be defined even though I don't need any event to be triggered. Is that the desired behavior?
    for(u32KeyCounter = 1, u32EventCounter = 1, orxString_Print(acID, "%s%ld", orxANIM_KZ_CONFIG_KEY_DATA, u32KeyCounter), orxString_Print(acEventID, "%s%ld", orxANIM_KZ_CONFIG_KEY_EVENT_NAME, u32KeyCounter);
        orxConfig_HasValue(acID) != orxFALSE;
        u32KeyCounter++, orxString_Print(acID, "%s%ld", orxANIM_KZ_CONFIG_KEY_DATA, u32KeyCounter), orxString_Print(acEventID, "%s%ld", orxANIM_KZ_CONFIG_KEY_EVENT_NAME, u32KeyCounter))
    {
      /* Has matching event? */
      if(orxConfig_HasValue(acEventID) != orxFALSE)
      {
        /* Updates event counter */
        u32EventCounter++;
      }
    }

    /* Valid? */
    if(u32EventCounter > 1)
    {
       (...)
    }

Comments

  • edited April 2011
    Thanks for reporting it, it was a silly bug I made during my last commit on this file. This should be working fine now.
  • edited April 2011
    Ok iarwain, Thanks.
Sign In or Register to comment.