From: Holger Schemel Date: Sun, 20 Aug 2023 21:22:10 +0000 (+0200) Subject: removed redundant code X-Git-Tag: 4.3.7.0~23 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=2247f4c2ef407a8a0952cd0a5eefc642b30bfa82;p=rocksndiamonds.git removed redundant code --- diff --git a/src/anim.c b/src/anim.c index de94b17f..8b307ea4 100644 --- a/src/anim.c +++ b/src/anim.c @@ -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;