From f746e814abddcc6434317bbc21aa452d3e30bef1 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Fri, 5 Feb 2016 20:57:41 +0000 Subject: Disable line-of-sight checking until fixed --- railcart/railcart.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/railcart/railcart.lua b/railcart/railcart.lua index fbbad4a..6e5fbd4 100644 --- a/railcart/railcart.lua +++ b/railcart/railcart.lua @@ -299,6 +299,7 @@ function railcart:update(cart, time, object) blocked = true end end +--[[ if object then local p1 = vector.add(cart.pos, {x=0, y=1, z=0}) local p2 = vector.add(cart.target, {x=0, y=1, z=0}) @@ -311,6 +312,7 @@ function railcart:update(cart, time, object) end end end +]]-- local d1 = railtrack:get_distance(cart.prev, cart.target) local d2 = railtrack:get_distance(cart.prev, cart.pos) local dist = d1 - d2 -- cgit v1.2.3