aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-funcs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/ai-funcs.cpp')
-rw-r--r--engines/hdb/ai-funcs.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index fd44017e5e..266a71c405 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -2044,6 +2044,19 @@ void AI::clearDiverters() {
}
}
+void AI::laserScan() {
+ AIEntity *e;
+
+ clearDiverters();
+ g_hdb->_map->clearLaserBeams();
+
+ for (uint i = 0; i < _ents->size(); i++) {
+ e = _ents->operator[](i);
+ if (e->type == AI_LASER)
+ aiLaserAction(e);
+ }
+}
+
void AI::floatEntity(AIEntity *e, AIState state) {
for (Common::Array<AIEntity *>::iterator it = _ents->begin(); it != _ents->end(); it++) {
if (e == *it) {