aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-01-24 13:43:22 +0100
committerorwell96 <orwell@bleipb.de>2019-01-24 13:43:22 +0100
commit2976bae4522a1682808db55473d9f824c7155cc6 (patch)
tree18cbfebbbf2d46a005499f8255b902b7e6c5e3da /advtrains/trainlogic.lua
parent1c3ea960415fcbd63c5f1b2cd8a5b25f79d2879f (diff)
downloadadvtrains-2976bae4522a1682808db55473d9f824c7155cc6.tar.gz
advtrains-2976bae4522a1682808db55473d9f824c7155cc6.tar.bz2
advtrains-2976bae4522a1682808db55473d9f824c7155cc6.zip
Point speed restriction rails
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r--advtrains/trainlogic.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index 94d5980..ad51c42 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -474,8 +474,8 @@ function advtrains.train_step_b(id, train, dtime)
local pdist = train.path_dist[math.floor(train.index)] or 1
local distance = (train.velocity*dtime) / pdist
- --TODO debugging code
- train.debug = atdump(train.ctrl).."step_dist: "..math.floor(distance*1000)
+ --debugging code
+ --train.debug = atdump(train.ctrl).."step_dist: "..math.floor(distance*1000)
train.index=train.index+distance