aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/items/biochips/biochipitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus/items/biochips/biochipitem.cpp')
-rwxr-xr-xengines/pegasus/items/biochips/biochipitem.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/pegasus/items/biochips/biochipitem.cpp b/engines/pegasus/items/biochips/biochipitem.cpp
index 71065f1efe..99e6050c85 100755
--- a/engines/pegasus/items/biochips/biochipitem.cpp
+++ b/engines/pegasus/items/biochips/biochipitem.cpp
@@ -27,6 +27,7 @@
#include "common/stream.h"
#include "pegasus/pegasus.h"
+#include "pegasus/ai/ai_area.h"
#include "pegasus/items/biochips/biochipitem.h"
namespace Pegasus {
@@ -80,13 +81,15 @@ TimeValue BiochipItem::getRightAreaTime() const {
void BiochipItem::select() {
Item::select();
- // TODO: AI
+ if (g_AIArea)
+ g_AIArea->setAIAreaToTime(kBiochipSignature, kRightAreaSignature, getRightAreaTime());
}
void BiochipItem::deselect() {
Item::deselect();
- // TODO: AI
+ if (g_AIArea)
+ g_AIArea->setAIAreaToTime(kBiochipSignature, kRightAreaSignature, 0xffffffff);
}
} // End of namespace Pegasus