diff options
Diffstat (limited to 'engines/draci/game.cpp')
-rw-r--r-- | engines/draci/game.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp index c322a5b286..008c1b6389 100644 --- a/engines/draci/game.cpp +++ b/engines/draci/game.cpp @@ -235,7 +235,6 @@ void Game::loadRoom(int roomNum) { debugC(4, kDraciLogicDebugLevel, "EscRoom: %d", _currentRoom._escRoom); debugC(4, kDraciLogicDebugLevel, "Gates: %d", _currentRoom._numGates); - // Read in the gates' numbers Common::Array<int> gates; @@ -447,6 +446,12 @@ void Game::changeRoom(uint roomNum) { int oldRoomNum = _currentRoom._roomNum; + // TODO: Make objects capable of stopping their own animations + GameObject *dragon = getObject(kDragonObject); + for (uint i = 0; i < dragon->_anims.size(); ++i) { + _vm->_anims->stop(dragon->_anims[i]); + } + for (uint i = 0; i < _info._numObjects; ++i) { GameObject *obj = &_objects[i]; |