forked from mtcontrib/boost_cart
		
	Revert cart gravity from 2.5 to 2
Allows 50% powerrail-rail mix to transport the cart in an 45° angle
This commit is contained in:
		| @@ -238,7 +238,6 @@ function cart_entity:on_step(dtime) | |||||||
| 			pos = vector.round(pos) | 			pos = vector.round(pos) | ||||||
| 			update.pos = true | 			update.pos = true | ||||||
| 			update.vel = true | 			update.vel = true | ||||||
| 			mod_found = true |  | ||||||
| 		end | 		end | ||||||
| 		if acc == nil then | 		if acc == nil then | ||||||
| 			-- Meta speed modifier | 			-- Meta speed modifier | ||||||
| @@ -266,11 +265,7 @@ function cart_entity:on_step(dtime) | |||||||
| 		end | 		end | ||||||
|  |  | ||||||
| 		-- Slow down or speed up, depending on Y direction | 		-- Slow down or speed up, depending on Y direction | ||||||
| 		if acc then | 		acc = acc + dir.y * -2 | ||||||
| 			acc = acc + dir.y * -2.5 |  | ||||||
| 		else |  | ||||||
| 			acc = 0 |  | ||||||
| 		end |  | ||||||
|  |  | ||||||
| 		if self.old_dir.y ~= 1 and not self.punched then | 		if self.old_dir.y ~= 1 and not self.punched then | ||||||
| 			-- Stop the cart swing between two rail parts (handbrake) | 			-- Stop the cart swing between two rail parts (handbrake) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user