From 340b5a7a0473e281ec0cba926b09949d0cb89610 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 28 Mar 2017 19:07:27 -0400 Subject: update pipeworks, technic, boost_cart --- boost_cart/cart_entity.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'boost_cart') diff --git a/boost_cart/cart_entity.lua b/boost_cart/cart_entity.lua index 07a7d69..1633758 100644 --- a/boost_cart/cart_entity.lua +++ b/boost_cart/cart_entity.lua @@ -264,8 +264,12 @@ function cart_entity:on_step(dtime) end end - -- Slow down or speed up, depending on Y direction - acc = acc + dir.y * -2 + if acc then + -- Slow down or speed up, depending on Y direction + acc = acc + dir.y * -2 + else + acc = 0 + end if self.old_dir.y ~= 1 and not self.punched then -- Stop the cart swing between two rail parts (handbrake) -- cgit v1.2.3