aboutsummaryrefslogtreecommitdiff
path: root/advtrains/wagons.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-07-04 14:04:41 +0200
committerorwell96 <orwell@bleipb.de>2018-07-04 14:04:41 +0200
commit9586a4d70922e24ba45ef018fc48455f31c4cfbb (patch)
treed781f1d4b32dc237da2c1f3a6b1f33cb2a71ec02 /advtrains/wagons.lua
parent820503ba81b709cecd86d621dd68e7701fe10222 (diff)
downloadadvtrains-9586a4d70922e24ba45ef018fc48455f31c4cfbb.tar.gz
advtrains-9586a4d70922e24ba45ef018fc48455f31c4cfbb.tar.bz2
advtrains-9586a4d70922e24ba45ef018fc48455f31c4cfbb.zip
Add off-track train flag, fixes wagon object property reset on reversing
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r--advtrains/wagons.lua2
1 files changed, 1 insertions, 1 deletions
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