diff options
author | stujones11 <stujones111@gmail.com> | 2016-02-05 20:57:41 +0000 |
---|---|---|
committer | stujones11 <stujones111@gmail.com> | 2016-02-05 20:57:41 +0000 |
commit | f746e814abddcc6434317bbc21aa452d3e30bef1 (patch) | |
tree | ac2ea06d7f27c3e2db94ab9d4e88fee65cc0bc07 | |
parent | 388f503e985b07022b72a98fb22f3ef19c2f7c6c (diff) |
Disable line-of-sight checking until fixed
-rw-r--r-- | railcart/railcart.lua | 2 |
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 |