aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-06-08 14:20:40 +0200
committerorwell96 <mono96.mml@gmail.com>2017-06-08 14:20:40 +0200
commit05704ac01616d00341b5e1140b356598f3325402 (patch)
tree113cdf18ee3fcdc291c1b7282901f7c062418d06 /advtrains
parentaf46d180f82865f3c6ef3868ef3b3ec3ec9a68f6 (diff)
downloadadvtrains-05704ac01616d00341b5e1140b356598f3325402.tar.gz
advtrains-05704ac01616d00341b5e1140b356598f3325402.tar.bz2
advtrains-05704ac01616d00341b5e1140b356598f3325402.zip
Fix broken door animations caused by continuous set_object_properties() messages sent to client
... which each time caused the animation to be reset
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/advtrains/wagons.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains/wagons.lua b/advtrains/advtrains/wagons.lua
index f1964ef..567b560 100644
--- a/advtrains/advtrains/wagons.lua
+++ b/advtrains/advtrains/wagons.lua
@@ -285,7 +285,7 @@ function wagon:on_step(dtime)
--check infotext
local outside=self:train().text_outside or ""
- if self.object:get_properties().infotext==outside then
+ if self.object:get_properties().infotext~=outside then
self.object:set_properties({infotext=outside})
end