aboutsummaryrefslogtreecommitdiff
path: root/advtrains/path.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/path.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/path.lua')
-rw-r--r--advtrains/path.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains/path.lua b/advtrains/path.lua
index 4a81ce9..19b4e78 100644
--- a/advtrains/path.lua
+++ b/advtrains/path.lua
@@ -115,6 +115,8 @@ function advtrains.path_invalidate(train)
train.path_trk_b=0
train.path_req_f=0
train.path_req_b=0
+
+ train.dirty = true
end
-- Prints a path using the passed print function