Commit b5f3edc
authored
Fix engine not updating with change-ship (#6893)
* Fix engine not updating with change-ship
Yet another caveat of the change-ship function was discovered by Darius, who found that that both the 3D assigned engine sounds and the 2D throttle/cockpit engine sounds do not properly updated when a ship type is changed via sexp/script.
This PR fixes this by properly calling the respective clearing functions and it also resets the throttle sound check timestamp to ensure the 2D sounds are indeed updated on the next frame.
Tested and works as expected. Fixes #6892.
* cleanup for safety1 parent e28b3bb commit b5f3edc
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2175 | 2175 | | |
2176 | 2176 | | |
2177 | 2177 | | |
| 2178 | + | |
2178 | 2179 | | |
2179 | 2180 | | |
2180 | 2181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12203 | 12203 | | |
12204 | 12204 | | |
12205 | 12205 | | |
12206 | | - | |
| 12206 | + | |
| 12207 | + | |
| 12208 | + | |
| 12209 | + | |
12207 | 12210 | | |
| 12211 | + | |
12208 | 12212 | | |
12209 | 12213 | | |
12210 | 12214 | | |
| |||
16317 | 16321 | | |
16318 | 16322 | | |
16319 | 16323 | | |
| 16324 | + | |
| 16325 | + | |
| 16326 | + | |
16320 | 16327 | | |
16321 | 16328 | | |
16322 | 16329 | | |
| |||
0 commit comments