From d307234efb1e687bfac06d48b01eb56d748e8510 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 12 Apr 2018 21:12:28 +0200 Subject: Refactor trace calls and remove the debug crap from the previous commit. --- src/game/unit_soldier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/unit_soldier.cpp') 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); -- cgit