summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-12-04 01:00:12 +0100
committerAki <please@ignore.pl>2022-12-04 01:00:12 +0100
commit4cd1c6163a5101f21826248c2b0d4e0e804168ca (patch)
tree48aca6b16e34d54e79074211bcf7b9550afb5100 /sim
parent25776ec71cc240cc0a30dd1113ad6bf1e53ddf37 (diff)
downloadkurator-4cd1c6163a5101f21826248c2b0d4e0e804168ca.zip
kurator-4cd1c6163a5101f21826248c2b0d4e0e804168ca.tar.gz
kurator-4cd1c6163a5101f21826248c2b0d4e0e804168ca.tar.bz2
Implemented naive laser effect
Diffstat (limited to 'sim')
-rw-r--r--sim/src/BaseBattle.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}