summaryrefslogtreecommitdiff
path: root/src/game/unit_soldier.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-20 14:18:16 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-20 14:18:16 +0200
commit84766a7d49d3c1e233e13191c86d4ada2bbe2ddc (patch)
tree57f733939a9fd9c0cb1c3157da37e90b2c08b547 /src/game/unit_soldier.cpp
parent0bc4eaebc6cb4410c5dbf3d89ae02634cfe72e27 (diff)
Refactor and improve the hivemind + better AI debugging.
Diffstat (limited to 'src/game/unit_soldier.cpp')
-rw-r--r--src/game/unit_soldier.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/unit_soldier.cpp b/src/game/unit_soldier.cpp
index 2131493..a10e014 100644
--- a/src/game/unit_soldier.cpp
+++ b/src/game/unit_soldier.cpp
@@ -131,6 +131,8 @@ void unit_soldier_t::fire_shotgun(v2f_t aim)
flash->place(&game->world);
last_attack = game->now;
assets::soldier.fire.play_3d(x);
+
+ game->hivemind_alert(x, 14.0f, true, x);
}