aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/anims.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-07-16 03:07:30 +0000
committerTorbjörn Andersson2010-07-16 03:07:30 +0000
commitd20ae841dd4321cb602139e175bef42f00268fcd (patch)
tree4e39404c8f74f72efd7ce40e8930dc9c8d57c57f /engines/sword2/anims.cpp
parent30238347e9b68a597f395dfe6662557de5ac3cfe (diff)
downloadscummvm-rg350-d20ae841dd4321cb602139e175bef42f00268fcd.tar.gz
scummvm-rg350-d20ae841dd4321cb602139e175bef42f00268fcd.tar.bz2
scummvm-rg350-d20ae841dd4321cb602139e175bef42f00268fcd.zip
Cleanup.
svn-id: r50923
Diffstat (limited to 'engines/sword2/anims.cpp')
-rw-r--r--engines/sword2/anims.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/engines/sword2/anims.cpp b/engines/sword2/anims.cpp
index 1bf3967047..7fd36fcc86 100644
--- a/engines/sword2/anims.cpp
+++ b/engines/sword2/anims.cpp
@@ -56,8 +56,6 @@ int Router::doAnimate(byte *ob_logic, byte *ob_graph, int32 animRes, bool revers
ObjectGraphic obGraph(ob_graph);
if (obLogic.getLooping() == 0) {
- byte *ptr;
-
// This is the start of the anim - set up the first frame
// For testing all anims!
@@ -75,12 +73,8 @@ int Router::doAnimate(byte *ob_logic, byte *ob_graph, int32 animRes, bool revers
return IR_STOP;
}
- ptr = _vm->_resman->openResource(animRes);
-
// if it's not an animation file
if (_vm->_resman->fetchType(animRes) != ANIMATION_FILE) {
- _vm->_resman->closeResource(animRes);
-
// switch off the sprite
// don't animate - just continue
// script next cycle
@@ -88,8 +82,6 @@ int Router::doAnimate(byte *ob_logic, byte *ob_graph, int32 animRes, bool revers
return IR_STOP;
}
- _vm->_resman->closeResource(animRes);
-
// switch on the sprite
setSpriteStatus(ob_graph, SORT_SPRITE);
}