aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r--advtrains/trainlogic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index fa7a40e..be0d60e 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -417,7 +417,7 @@ function advtrains.train_step_b(id, train, dtime)
if emerg then
v_target_apply(v_targets, VLEVER_EMERG, 0)
else
- v_target_apply(v_targets, VLEVER_EMERG, braketar)
+ v_target_apply(v_targets, VLEVER_BRAKE, braketar)
end
else
v_target_apply(v_targets, VLEVER_ROLL, train.tarvelocity)