summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2016-02-05 20:57:41 +0000
committerstujones11 <stujones111@gmail.com>2016-02-05 20:57:41 +0000
commitf746e814abddcc6434317bbc21aa452d3e30bef1 (patch)
treeac2ea06d7f27c3e2db94ab9d4e88fee65cc0bc07
parent388f503e985b07022b72a98fb22f3ef19c2f7c6c (diff)
Disable line-of-sight checking until fixed
-rw-r--r--railcart/railcart.lua2
1 files changed, 2 insertions, 0 deletions
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