aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-10-23 14:02:40 +0200
committerGitHub <noreply@github.com>2017-10-23 14:02:40 +0200
commit291da56aa22608863252f419bbd8f226f0913c76 (patch)
tree03c31c93936dc4c11d6885fef2c89db378002d7b /advtrains
parent850d8ac570d6db3b02970fa57116a5fd818f19ae (diff)
downloadadvtrains-291da56aa22608863252f419bbd8f226f0913c76.tar.gz
advtrains-291da56aa22608863252f419bbd8f226f0913c76.tar.bz2
advtrains-291da56aa22608863252f419bbd8f226f0913c76.zip
Fix last commit
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/wagons.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index d020734..3e8641e 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -302,7 +302,7 @@ function wagon:on_step(dtime)
textures={new_line_tex},
})
self.line_cache=gp.line
- elseif self.line_cache~=nil then
+ elseif self.line_cache~=nil and gp.line==nil then
self.object:set_properties({
textures=self.textures,
})