diff options
author | Y. Wang <yw05@forksworld.de> | 2022-09-04 17:31:09 +0200 |
---|---|---|
committer | Y. Wang <yw05@forksworld.de> | 2022-09-04 17:50:09 +0200 |
commit | 49beb106f00d35296c54a6f15cc663526651d376 (patch) | |
tree | 21e551a285a4f44960f50082d7ceedab667252d0 /advtrains/trainlogic.lua | |
parent | 9a9023bdf8c846661596ba16b125a5ab1102a25a (diff) | |
download | advtrains-49beb106f00d35296c54a6f15cc663526651d376.tar.gz advtrains-49beb106f00d35296c54a6f15cc663526651d376.tar.bz2 advtrains-49beb106f00d35296c54a6f15cc663526651d376.zip |
Use ldoc instead of manpages
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r-- | advtrains/trainlogic.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 35c3726..ac1424b 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -562,7 +562,7 @@ function advtrains.train_step_b(id, train, dtime) train.acceleration = 0 end - --- 3b. if braking, modify the velocity BEFORE the movement + --- 3b. if braking, modify the velocity BEFORE the movement --- if braking then local dv = advtrains.get_acceleration(train, lever) * dtime local v1 = v0 + dv @@ -671,7 +671,7 @@ function advtrains.train_step_b(id, train, dtime) recalc_end_index(train) --atprint("in train_step_b: New index",train.index,"end",train.end_index,"vel",train.velocity) - --- 4a. if accelerating, modify the velocity AFTER the movement + --- 4a. if accelerating, modify the velocity AFTER the movement --- if accelerating then local dv = advtrains.get_acceleration(train, lever) * dtime local v1 = v0 + dv @@ -715,7 +715,7 @@ function advtrains.train_step_c(id, train, dtime) local train_moves=(train.velocity~=0) local very_short_train = train.trainlen < 3 - --- On-track collision handling - detected in train_step_b, but handled here so all other train movements have already happened. + -- On-track collision handling - detected in train_step_b, but handled here so all other train movements have already happened. -- if train.ontrack_collision_info then train.velocity = 0 train.acceleration = 0 |