Fix broken door animations caused by continuous set_object_properties() messages sent to client

... which each time caused the animation to be reset
master
orwell96 2017-06-08 14:20:40 +02:00
parent af46d180f8
commit 05704ac016
1 changed files with 1 additions and 1 deletions

View File

@ -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