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_spider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/unit_spider.cpp') diff --git a/src/game/unit_spider.cpp b/src/game/unit_spider.cpp index 9d1ec30..728e42e 100644 --- a/src/game/unit_spider.cpp +++ b/src/game/unit_spider.cpp @@ -56,7 +56,7 @@ void unit_spider_t::target_and_attack(void) if ((x - target->x).len() >= 1.0f) return; - trace = world->trace(x, target->x, CF_SOLID); + trace = world->ray_v_tiles(x, target->x, CF_SOLID); if (trace.hit) return; -- cgit