improved definition of constants for toon animations
authorHolger Schemel <info@artsoft.org>
Sun, 14 Feb 2016 22:41:59 +0000 (23:41 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 14 Feb 2016 22:41:59 +0000 (23:41 +0100)
src/cartoons.c

index d77c476422197fcda110a66dd80bb9e0ef282d7c..42864403a720b9c9acd0485f8f6c45d6067b51ce 100644 (file)
 #include "tools.h"
 
 
-/* values for global animation definition */
-#define NUM_GLOBAL_ANIMS_AND_TOONS     (NUM_GLOBAL_ANIMS + 1)
+/* values for global toon animation definition */
+#define NUM_GLOBAL_TOON_ANIMS          1
+#define NUM_GLOBAL_TOON_PARTS          MAX_NUM_TOONS
+
+/* values for global animation definition (including toons) */
+#define NUM_GLOBAL_ANIMS_AND_TOONS     (NUM_GLOBAL_ANIMS +             \
+                                        NUM_GLOBAL_TOON_ANIMS)
 #define NUM_GLOBAL_ANIM_PARTS_AND_TOONS        MAX(NUM_GLOBAL_ANIM_PARTS_ALL,  \
-                                           MAX_NUM_TOONS)
+                                           NUM_GLOBAL_TOON_PARTS)
 
 struct GlobalAnimPartControlInfo
 {