From 07f82d0b38940ba284bc10b0ab8ddeceb6ac1a13 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 11 Jan 2016 06:59:10 +0100 Subject: MADS: dragonsphere - Remove dead code in Scene102::step() --- engines/mads/dragonsphere/dragonsphere_scenes1.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/engines/mads/dragonsphere/dragonsphere_scenes1.cpp b/engines/mads/dragonsphere/dragonsphere_scenes1.cpp index ee32a0fdef..5fdf2018f9 100644 --- a/engines/mads/dragonsphere/dragonsphere_scenes1.cpp +++ b/engines/mads/dragonsphere/dragonsphere_scenes1.cpp @@ -305,12 +305,9 @@ void Scene102::enter() { } void Scene102::step() { - int resetFrame; - if ((_animRunning == 1) && _scene->_animation[_globals._animationIndexes[0]]) { if (_scene->_animation[_globals._animationIndexes[0]]->getCurrentFrame() != _diaryFrame) { _diaryFrame = _scene->_animation[_globals._animationIndexes[0]]->getCurrentFrame(); - resetFrame = -1; switch (_diaryFrame) { case 6: @@ -331,13 +328,6 @@ void Scene102::step() { default: break; } - - if (resetFrame >= 0) { - if (resetFrame != _scene->_animation[_globals._animationIndexes[0]]->getCurrentFrame()) { - _scene->setAnimFrame(_globals._animationIndexes[0], resetFrame); - _diaryFrame = resetFrame; - } - } } } -- cgit v1.2.3