summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-13 13:11:45 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-13 13:11:45 +0200
commitce40f40ce6c7b7b44f1e1aea1cd1cb4d917b24c3 (patch)
tree13ad08a647ce19d0bf68a842376571a88f7bf8b9 /src/game
parent9226def3f107bb768034029f6108d2b657182acc (diff)
Hivemind improvements.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/unit_spider.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/unit_spider.cpp b/src/game/unit_spider.cpp
index 32ae178..4f0fbd9 100644
--- a/src/game/unit_spider.cpp
+++ b/src/game/unit_spider.cpp
@@ -51,6 +51,10 @@ void unit_spider_t::target_and_attack(void)
return;
}
+ // Tell everyone about a new target.
+ if (!have_target)
+ hivemind_attack(this, target->x);
+
have_target = true;
wake_time = game->time;
start_moving(target->x);