diff options
author | Robert Špalek | 2009-11-22 05:35:36 +0000 |
---|---|---|
committer | Robert Špalek | 2009-11-22 05:35:36 +0000 |
commit | 5b9bfaee2b166f347225390ab0320343ccfd93a7 (patch) | |
tree | 293ffb9807b25959809fea9c05b3386193f47e25 /engines | |
parent | 0ee8f879fa718a7507f1b22108b7d173edd7bdb5 (diff) | |
download | scummvm-rg350-5b9bfaee2b166f347225390ab0320343ccfd93a7.tar.gz scummvm-rg350-5b9bfaee2b166f347225390ab0320343ccfd93a7.tar.bz2 scummvm-rg350-5b9bfaee2b166f347225390ab0320343ccfd93a7.zip |
Opening the inventory stops hero walking
(otherwise the relative animation would repeat itself unhandled until the
hero disappears from the screen.)
svn-id: r46058
Diffstat (limited to 'engines')
-rw-r--r-- | engines/draci/game.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp index 1862ceb22d..b04de1a000 100644 --- a/engines/draci/game.cpp +++ b/engines/draci/game.cpp @@ -773,6 +773,9 @@ void Game::putItem(GameItem *item, int position) { void Game::inventoryInit() { // Pause all "background" animations _vm->_anims->pauseAnimations(); + if (_walkingState.isActive()) { + walkHero(_hero.x, _hero.y, kDirectionLast); + } // Draw the inventory and the current items inventoryDraw(); |