From 4cd1c6163a5101f21826248c2b0d4e0e804168ca Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 4 Dec 2022 01:00:12 +0100 Subject: Implemented naive laser effect --- sim/src/BaseBattle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/src') diff --git a/sim/src/BaseBattle.cpp b/sim/src/BaseBattle.cpp index fc12b9c..9587ca7 100644 --- a/sim/src/BaseBattle.cpp +++ b/sim/src/BaseBattle.cpp @@ -139,7 +139,7 @@ BaseBattle::turrets(const float dt) const auto damage = effective_damage(def, distance.magnitude()); if (damage > 0.0) { target_points.health -= damage; - _dispatcher.trigger(Hit{damage, entity, state.target}); + _dispatcher.trigger(Hit{damage, control.owner, state.target}); } control.reload = def.rate_of_fire; } -- cgit v1.1