aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-01-11 06:59:10 +0100
committerStrangerke2016-01-11 06:59:10 +0100
commit07f82d0b38940ba284bc10b0ab8ddeceb6ac1a13 (patch)
tree9295e741a318d118799b0a5ae945d2c10d19e638
parent83a5ee43c256e464781f1b00a33f56f24c6ec42d (diff)
downloadscummvm-rg350-07f82d0b38940ba284bc10b0ab8ddeceb6ac1a13.tar.gz
scummvm-rg350-07f82d0b38940ba284bc10b0ab8ddeceb6ac1a13.tar.bz2
scummvm-rg350-07f82d0b38940ba284bc10b0ab8ddeceb6ac1a13.zip
MADS: dragonsphere - Remove dead code in Scene102::step()
-rw-r--r--engines/mads/dragonsphere/dragonsphere_scenes1.cpp10
1 files changed, 0 insertions, 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;
- }
- }
}
}