diff options
author | orwell96 <orwell@bleipb.de> | 2019-01-24 13:43:22 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2019-01-24 13:43:22 +0100 |
commit | 2976bae4522a1682808db55473d9f824c7155cc6 (patch) | |
tree | 18cbfebbbf2d46a005499f8255b902b7e6c5e3da /advtrains/trainlogic.lua | |
parent | 1c3ea960415fcbd63c5f1b2cd8a5b25f79d2879f (diff) | |
download | advtrains-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.lua | 4 |
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 |