Files
fs2open.github.com/code/scripting/api/objs
Goober5000 630f479fd9 properly handle game sounds with numeric IDs (#6212)
Patches the gamesnd system in several ways to properly fix the bug identified in #6196.  Due to the way the new sound system was written, sounds with numeric IDs were not necessarily added in their indexed location, even though the code assumed (even prior to #6112) that this would be the case.  The code now uses the proper index for both old *and* new style sounds.  This is done by ensuring, in `gamesnd_parse_entry()`, that the vector contains an entry for the specified numeric ID before doing a search for that ID.

Due to the slightly modified population of the gamesnd vectors, the `Snds_iface_handle` vector is now populated after parsing the various sounds.tbl files rather than during parsing.

Separately, this makes consistent the handling of the `sound_entries` vector which could potentially be empty but also treated an empty state as an assertion failure.
2024-06-27 23:55:42 -04:00
..
2022-05-16 18:36:34 +09:00
2023-12-05 17:47:41 +01:00
2020-08-08 19:36:39 +02:00
2022-12-09 13:10:39 -05:00
2023-10-24 20:33:45 -04:00
2021-03-01 00:13:49 +09:00
2024-04-25 21:26:35 -04:00
2023-04-12 00:14:20 -04:00
2023-04-12 00:14:20 -04:00
2023-04-16 08:13:06 -04:00
2023-04-16 08:13:06 -04:00
2023-04-12 10:55:38 -04:00
2023-04-12 00:14:20 -04:00
2024-06-13 00:17:47 +02:00
2024-06-17 21:28:40 +02:00
2024-06-17 21:28:40 +02:00
2023-12-02 13:04:14 -05:00
2024-04-17 17:48:57 +00:00
2024-04-17 17:48:57 +00:00
2024-02-27 13:09:34 -05:00
2019-03-02 14:02:21 +01:00
2023-10-30 15:16:16 -04:00
2023-09-19 10:57:30 -05:00
2023-09-09 10:54:04 -05:00
2023-04-12 00:14:20 -04:00
2023-03-28 03:07:03 +09:00
2022-10-06 20:43:09 -04:00
2020-09-13 00:46:28 -04:00
2024-02-26 16:19:53 -05:00
2023-04-20 09:37:33 -05:00
2023-03-28 03:07:03 +09:00