From 3ca0c25d7e3cee2f55dd4e5467d1ab9cce2a1a78 Mon Sep 17 00:00:00 2001 From: cheapie Date: Thu, 25 Apr 2024 16:33:41 -0500 Subject: Fix car motion sound not playing if the car unloaded on the previous trip --- drive_entity.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3