From 8b4487c2b8710ab2c7314a94782741bc03a667cb Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Thu, 23 Mar 2017 21:02:52 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20cart=20gravity=20from=202.5=20to=202?= =?UTF-8?q?=20Allows=2050%=20powerrail-rail=20mix=20to=20transport=20the?= =?UTF-8?q?=20cart=20in=20an=2045=C2=B0=20angle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cart_entity.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cart_entity.lua b/cart_entity.lua index 32ebe5f..07a7d69 100644 --- a/cart_entity.lua +++ b/cart_entity.lua @@ -238,7 +238,6 @@ function cart_entity:on_step(dtime) pos = vector.round(pos) update.pos = true update.vel = true - mod_found = true end if acc == nil then -- Meta speed modifier @@ -266,11 +265,7 @@ function cart_entity:on_step(dtime) end -- Slow down or speed up, depending on Y direction - if acc then - acc = acc + dir.y * -2.5 - else - acc = 0 - end + acc = acc + dir.y * -2 if self.old_dir.y ~= 1 and not self.punched then -- Stop the cart swing between two rail parts (handbrake)