aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-01-07 20:52:15 +0100
committerorwell96 <orwell@bleipb.de>2018-01-07 20:52:15 +0100
commitae88f29481c83532f79dfa55d6ec6eb27e091bb6 (patch)
tree9da2d964b9ae6c181ab3894b7bf031baa98d4eb8 /advtrains
parent1f26781b6a79135159205231f580beb06e789d4d (diff)
downloadadvtrains-ae88f29481c83532f79dfa55d6ec6eb27e091bb6.tar.gz
advtrains-ae88f29481c83532f79dfa55d6ec6eb27e091bb6.tar.bz2
advtrains-ae88f29481c83532f79dfa55d6ec6eb27e091bb6.zip
Don't use looped sounds on subway
(causes engine bugs with dangling sound handles)
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 a367487..0616f9f 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -532,7 +532,7 @@ function wagon:on_step(dtime)
self:update_animation(gp.velocity, self.old_velocity)
end
if self.custom_on_velocity_change then
- self:custom_on_velocity_change(gp.velocity, self.old_velocity or 0)
+ self:custom_on_velocity_change(gp.velocity, self.old_velocity or 0, dtime)
end
end