summaryrefslogtreecommitdiff
path: root/src/game/unit_soldier.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-12 21:12:28 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-12 21:13:35 +0200
commitd307234efb1e687bfac06d48b01eb56d748e8510 (patch)
tree911312b01583dc65b7204ae9a5093e15949e6642 /src/game/unit_soldier.cpp
parenta5b20dcd57ddf7bdac8d9bce1aabf934badd837d (diff)
Refactor trace calls and remove the debug crap from the previous commit.
Diffstat (limited to 'src/game/unit_soldier.cpp')
-rw-r--r--src/game/unit_soldier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/unit_soldier.cpp b/src/game/unit_soldier.cpp
index 4112d9a..e44e8a2 100644
--- a/src/game/unit_soldier.cpp
+++ b/src/game/unit_soldier.cpp
@@ -84,7 +84,7 @@ void unit_soldier_t::shoot(v2f_t aim)
end = x + (aim - x).norm() * 40;
- trace = world->trace(x, end, CF_SOLID);
+ trace = world->ray_v_all(x, end, CF_SOLID, this);
muzzle_point = x + v2f_t(0, -1.0f);