Menu

#8 Clock tutorial

open
nobody
None
5
2013-01-09
2011-11-17
Anonymous
No

There is a problem with line:
/* Removes modifier from this clock */
orxClock_SetModifier(pstClock, orxCLOCK_MOD_TYPE_NONE, orxFLOAT_0);
The enum "orxCLOCK_MOD_TYPE_NONE" is not accepted. The program crash (under Linux) and into "-debug.log" is added the following line:
<ASSERT> (orxClock_SetModifier() - home/iarwain/orx/code/src/core/orxClock.c:1056) [Assertion failed] : <_eModType < orxCLOCK_MOD_TYPE_NUMBER>
Looking into the source code (orxClock.c) there is an explicit check that exclude this enum to be accepted.

Discussion

  • faistoiplaisir

    faistoiplaisir - 2011-11-17

    Maybe it's a bug.

    But, to continue your development without waiting the correction, you probably can set a modifier orxCLOCK_MOD_TYPE_MULTIPLY with the value orxFLOAT_1;

     
  • Nobody/Anonymous

    Yeah! Yeah! I already found a solution too. :)
    I just notified this strange behaviour thinking it could possibly hide a bug or something like that.

    Thank you for your work.

     
MongoDB Logo MongoDB