Debug line detected

This commit is contained in:
SmallJoker 2014-08-01 17:45:51 +02:00
parent 4652679f7d
commit 8280738bf6

View File

@ -128,12 +128,11 @@ function boost_cart.cart:on_step(dtime)
z = math.abs(diff.z) z = math.abs(diff.z)
} }
print(minetest.pos_to_string(diff))
if diff.x > math.abs(self.old_dir.x) or if diff.x > math.abs(self.old_dir.x) or
diff.y > math.abs(self.old_dir.y) or diff.y > math.abs(self.old_dir.y) or
diff.z > math.abs(self.old_dir.z) then diff.z > math.abs(self.old_dir.z) then
pos = vector.new(expected_pos) pos = vector.new(expected_pos)
minetest.log("action", "Cart moving too fast at "..minetest.pos_to_string(pos)) --minetest.log("action", "Cart moving too fast at "..minetest.pos_to_string(pos))
self.punch = true self.punch = true
end end
end end