aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorĽubomír Remák2018-07-15 02:46:23 +0200
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commit296835f84ae2b0c54882b8de19506989a3cf1fc4 (patch)
treee6e5705d5374e416b5abf53b57274a8231b947b4 /engines
parent3b614f08327441d5252add7c16f4955652e32d0a (diff)
downloadscummvm-rg350-296835f84ae2b0c54882b8de19506989a3cf1fc4.tar.gz
scummvm-rg350-296835f84ae2b0c54882b8de19506989a3cf1fc4.tar.bz2
scummvm-rg350-296835f84ae2b0c54882b8de19506989a3cf1fc4.zip
MUTATIONOFJB: Draw object animations on map scene.
Diffstat (limited to 'engines')
-rw-r--r--engines/mutationofjb/room.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/mutationofjb/room.cpp b/engines/mutationofjb/room.cpp
index 5577077480..009c4bedbf 100644
--- a/engines/mutationofjb/room.cpp
+++ b/engines/mutationofjb/room.cpp
@@ -137,13 +137,13 @@ void Room::redraw() {
if (!_game->isCurrentSceneMap()) {
Common::Rect rect(0, 0, GAME_AREA_WIDTH, GAME_AREA_HEIGHT);
_screen->blitFrom(_background.rawSurface(), rect, Common::Point(0, 0));
+ }
- Scene *const currentScene = _game->getGameData().getCurrentScene();
- for (int i = 0; i < currentScene->getNoObjects(); ++i) {
- Object *const obj = currentScene->getObject(i + 1);
- if (obj->_AC) {
- drawObjectAnimation(i + 1, 0);
- }
+ Scene *const currentScene = _game->getGameData().getCurrentScene();
+ for (int i = 0; i < currentScene->getNoObjects(); ++i) {
+ Object *const obj = currentScene->getObject(i + 1);
+ if (obj->_AC) {
+ drawObjectAnimation(i + 1, 0);
}
}
}