mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
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:
parent
0ee8f879fa
commit
5b9bfaee2b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user