summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-04-25 16:33:41 -0500
committercheapie <no-email-for-you@example.com>2024-04-25 16:33:41 -0500
commit3ca0c25d7e3cee2f55dd4e5467d1ab9cce2a1a78 (patch)
treea4f8a137d49420477ff6c5fcb81dba3e04d9e0ad
parentdb5cd70f04824216506d0e6a04dcd927bd7e5421 (diff)
downloadcelevator-3ca0c25d7e3cee2f55dd4e5467d1ab9cce2a1a78.tar
celevator-3ca0c25d7e3cee2f55dd4e5467d1ab9cce2a1a78.tar.gz
celevator-3ca0c25d7e3cee2f55dd4e5467d1ab9cce2a1a78.tar.bz2
celevator-3ca0c25d7e3cee2f55dd4e5467d1ab9cce2a1a78.tar.xz
celevator-3ca0c25d7e3cee2f55dd4e5467d1ab9cce2a1a78.zip
Fix car motion sound not playing if the car unloaded on the previous trip
-rw-r--r--drive_entity.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/drive_entity.lua b/drive_entity.lua
index 4d01790..8bacf59 100644
--- a/drive_entity.lua
+++ b/drive_entity.lua
@@ -458,6 +458,7 @@ function celevator.drives.entity.step(dtime)
sound = vel ~= 0
meta:set_string("vel",tostring(vel))
elseif state == "fakerunning" then
+ celevator.drives.entity.carsoundstate[hash] = "stopped"
local apos = tonumber(meta:get_string("apos")) or 0
local sheaverefs = celevator.drives.entity.sheaverefs[carid]
if sheaverefs and sheaverefs[1] then