From 9586a4d70922e24ba45ef018fc48455f31c4cfbb Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 4 Jul 2018 14:04:41 +0200 Subject: Add off-track train flag, fixes wagon object property reset on reversing --- advtrains/wagons.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains/wagons.lua') diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index cb139da..afd66d7 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -305,7 +305,7 @@ function wagon:on_step(dtime) local train=self:train() --show off-track information in outside text instead of notifying the whole server about this - if not train.dirty and train.end_index < train.path_trk_b or train.index > train.path_trk_f then + if train.off_track then outside = outside .."\n!!! Train off track !!!" end -- cgit v1.2.3