summaryrefslogtreecommitdiff
path: root/src/game/unit_spider.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_spider.cpp
parenta5b20dcd57ddf7bdac8d9bce1aabf934badd837d (diff)
Refactor trace calls and remove the debug crap from the previous commit.
Diffstat (limited to 'src/game/unit_spider.cpp')
-rw-r--r--src/game/unit_spider.cpp2
1 files changed, 1 insertions, 1 deletions
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;