From caf2bda7bc02f0bbe6dbbeb415e7881158d143b9 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 26 Apr 2018 23:35:19 +0200 Subject: Fix path_dir to actually be an angle, path item deletion and orientation of wagons The occupation system as it is now will change. For each position, I will save the index in the train's path, and implement a callback system. I need this because the occupation window system will not be enough to cover all use cases (e.g. to make a train stop with it's center or back at a certain position, I need 3 different brake distances, which doesn't fit into the scheme) --- advtrains/trainhud.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains/trainhud.lua') diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua index 26af2a1..60ef5d1 100644 --- a/advtrains/trainhud.lua +++ b/advtrains/trainhud.lua @@ -60,7 +60,7 @@ function advtrains.on_control_change(pc, train, flip) end act=true else - --train.movedir = -train.movedir + advtrains.invert_train(train.id) end end if pc.left then -- cgit v1.2.3