diff options
author | orwell96 <orwell@bleipb.de> | 2018-01-07 20:52:15 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-01-07 20:52:15 +0100 |
commit | ae88f29481c83532f79dfa55d6ec6eb27e091bb6 (patch) | |
tree | 9da2d964b9ae6c181ab3894b7bf031baa98d4eb8 /advtrains/wagons.lua | |
parent | 1f26781b6a79135159205231f580beb06e789d4d (diff) | |
download | advtrains-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/wagons.lua')
-rw-r--r-- | advtrains/wagons.lua | 2 |
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
|