From 49beb106f00d35296c54a6f15cc663526651d376 Mon Sep 17 00:00:00 2001 From: "Y. Wang" Date: Sun, 4 Sep 2022 17:31:09 +0200 Subject: Use ldoc instead of manpages --- advtrains/trainlogic.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'advtrains/trainlogic.lua') 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 -- cgit v1.2.3