X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fanim.c;fp=src%2Fanim.c;h=08abd6680cc7b2bc30b4e0ade4711ce7e3732667;hb=3d6d570ac8fc55fa42441737d718f552c98238d2;hp=82cb8dd248fc461b09ed6d081119c984ebced894;hpb=c4cfe09e6e5db671cf17fa7e7689d3773255eca3;p=rocksndiamonds.git 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; }