From 5b9bfaee2b166f347225390ab0320343ccfd93a7 Mon Sep 17 00:00:00 2001 From: Robert Špalek Date: Sun, 22 Nov 2009 05:35:36 +0000 Subject: Opening the inventory stops hero walking (otherwise the relative animation would repeat itself unhandled until the hero disappears from the screen.) svn-id: r46058 --- engines/draci/game.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/draci') 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(); -- cgit v1.2.3