X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fanim%2Fanimhost.c;h=48a45bda8465795e8883373ab088918783c4c0d3;hb=a7b24450e4c7ca75636df1375d01d2266bd00c8c;hp=fc345e44588a1fba5f8c77714524b310101ae28b;hpb=85ff31f9ec26adf70f835d95184f6dded9d0c785;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/anim/animhost.c b/qcsrc/menu/anim/animhost.c index fc345e445..48a45bda8 100644 --- a/qcsrc/menu/anim/animhost.c +++ b/qcsrc/menu/anim/animhost.c @@ -65,6 +65,7 @@ void AnimHost_removeAnim(entity me, entity other) n.prevSibling = p; else me.lastChild = p; + remove(other); } void AnimHost_removeAllAnim(entity me) @@ -141,7 +142,6 @@ void AnimHost_finishAllAnim(entity me) { tmp = e; e = tmp.prevSibling; - me.removeAnim(me, tmp); tmp.finishAnim(tmp); } } @@ -155,7 +155,6 @@ void AnimHost_finishObjAnim(entity me, entity obj) { tmp = e; e = tmp.prevSibling; - me.removeAnim(me, tmp); tmp.finishAnim(tmp); } } @@ -167,15 +166,11 @@ void AnimHost_tickAll(entity me) for(e = me.firstChild; e; e = e.nextSibling) { e.tick(e, time); - } - for(e = me.firstChild; e; e = e.nextSibling) - { if (e.isFinished(e)) { tmp = e; e = tmp.prevSibling; me.removeAnim(me, tmp); - remove(tmp); } } }