aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/items/inventory/inventoryitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus/items/inventory/inventoryitem.cpp')
-rwxr-xr-xengines/pegasus/items/inventory/inventoryitem.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/pegasus/items/inventory/inventoryitem.cpp b/engines/pegasus/items/inventory/inventoryitem.cpp
index ffa745acef..17f07050b3 100755
--- a/engines/pegasus/items/inventory/inventoryitem.cpp
+++ b/engines/pegasus/items/inventory/inventoryitem.cpp
@@ -26,6 +26,7 @@
#include "common/stream.h"
#include "pegasus/pegasus.h"
+#include "pegasus/ai/ai_area.h"
#include "pegasus/items/inventory/inventoryitem.h"
namespace Pegasus {
@@ -90,13 +91,15 @@ TimeValue InventoryItem::getAnimationTime() const {
void InventoryItem::select() {
Item::select();
- // TODO: AI
+ if (g_AIArea)
+ g_AIArea->setAIAreaToTime(kInventorySignature, kLeftAreaSignature, getLeftAreaTime());
}
void InventoryItem::deselect() {
Item::deselect();
- // TODO: AI
+ if (g_AIArea)
+ g_AIArea->setAIAreaToTime(kInventorySignature, kLeftAreaSignature, 0xffffffff);
}
void InventoryItem::getPanelTimes(TimeValue &start, TimeValue &stop) const {