From: Holger Schemel Date: Sat, 9 Dec 2023 18:23:08 +0000 (+0100) Subject: fixed sorting global animation parts by draw order (which was confusing) X-Git-Tag: 4.3.8.0~1 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3d6d570ac8fc55fa42441737d718f552c98238d2;p=rocksndiamonds.git fixed sorting global animation parts by draw order (which was confusing) --- diff --git a/src/anim.c b/src/anim.c index 82cb8dd2..08abd668 100644 --- a/src/anim.c +++ b/src/anim.c @@ -360,10 +360,8 @@ static int compareGlobalAnimPartControlInfo(const void *obj1, const void *obj2) (struct GlobalAnimPartControlInfo *)obj2; int compare_result; - if (o1->control_info.draw_order != o2->control_info.draw_order) - compare_result = o1->control_info.draw_order - o2->control_info.draw_order; - else - compare_result = o1->nr - o2->nr; + // do not sort animations parts by draw order (as it would be confusing) + compare_result = o1->nr - o2->nr; return compare_result; }