aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2014-06-05 08:06:32 +0200
committerStrangerke2014-06-05 08:06:32 +0200
commitd76c375c3f060db0912cce26b5b38b94cb3ad414 (patch)
tree3e4e038a6f89cc24b81bbde881a63967fe89e30f
parentef902a3fa2d3e4edb4d2d18fab03998bdce2646d (diff)
downloadscummvm-rg350-d76c375c3f060db0912cce26b5b38b94cb3ad414.tar.gz
scummvm-rg350-d76c375c3f060db0912cce26b5b38b94cb3ad414.tar.bz2
scummvm-rg350-d76c375c3f060db0912cce26b5b38b94cb3ad414.zip
CRUISE: Remove useless code in addAnimation()
-rw-r--r--engines/cruise/function.cpp5
1 files changed, 0 insertions, 5 deletions
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;