Opening the inventory stops hero walking

(otherwise the relative animation would repeat itself unhandled until the
hero disappears from the screen.)

svn-id: r46058
This commit is contained in:
Robert Špalek 2009-11-22 05:35:36 +00:00
parent 0ee8f879fa
commit 5b9bfaee2b

View File

@ -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();