removed redundant code
authorHolger Schemel <info@artsoft.org>
Sun, 20 Aug 2023 21:22:10 +0000 (23:22 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 3 Sep 2023 20:59:58 +0000 (22:59 +0200)
src/anim.c

index de94b17f88abb50a3a3fc41ce4e0c4e1c27accde..8b307ea4482f1c54d0a892ea4250b689cc04ec37 100644 (file)
@@ -1596,12 +1596,7 @@ static int HandleGlobalAnim_Part(struct GlobalAnimPartControlInfo *part,
       part->init_event_state)
   {
     if (part->initial_anim_sync_frame > 0)
-    {
-      if (part->init_delay_counter > 0)
-       part->initial_anim_sync_frame -= part->init_delay_counter;
-      else
-       part->initial_anim_sync_frame = anim_sync_frame;
-    }
+      part->initial_anim_sync_frame = anim_sync_frame;
 
     part->init_delay_counter = 1;
     part->init_event_state = FALSE;