From d76c375c3f060db0912cce26b5b38b94cb3ad414 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 5 Jun 2014 08:06:32 +0200 Subject: CRUISE: Remove useless code in addAnimation() --- engines/cruise/function.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'engines/cruise/function.cpp') diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp index dc4303c286..a026bbe0c1 100644 --- a/engines/cruise/function.cpp +++ b/engines/cruise/function.cpp @@ -1082,11 +1082,6 @@ actorStruct *addAnimation(actorStruct * pHead, int overlay, int objIdx, int para pCurrent = pPrevious->next; } - if (pCurrent && (pCurrent->overlayNumber == overlay) - && (pCurrent->idx == objIdx) && (pCurrent->type == param2)) { - return NULL; - } - actorStruct *pNewElement = (actorStruct *) MemAlloc(sizeof(actorStruct)); if (!pNewElement) return NULL; -- cgit v1.2.3