aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/game.cpp')
-rw-r--r--engines/mads/game.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/mads/game.cpp b/engines/mads/game.cpp
index 3778e834ed..e65330a5d4 100644
--- a/engines/mads/game.cpp
+++ b/engines/mads/game.cpp
@@ -235,7 +235,12 @@ void Game::sectionLoop() {
_player._priorTimer = _scene._frameStartTime + _player._ticksAmount;
_player.idle();
- warning("TODO: _selectedObject IF block");
+ if (_scene._userInterface._selectedInvIndex >= 0) {
+ _scene._userInterface.loadInventoryAnim(
+ _objects._inventoryList[_scene._userInterface._selectedInvIndex]);
+ } else {
+ _scene._userInterface.noInventoryAnim();
+ }
_v1 = 5;
_scene._roomChanged = false;