MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PageInSound

Function PageInSound

Descent3/gamesequence.cpp:2237–2252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2235}
2236
2237bool PageInSound(int id) {
2238 if (id == -1)
2239 return false;
2240
2241 if (Dedicated_server)
2242 return false;
2243
2244 // sometimes, id passed was 0xffff which seems like a int16_t -1. The if statement
2245 // ensures that the array Sounds_to_free is dealt with properly.
2246 if (Sound_system.CheckAndForceSoundDataAlloc(id)) {
2247 Sounds_to_free[id] = 1;
2248 return true;
2249 }
2250
2251 return false;
2252}
2253
2254void PageInDoor(int id) {
2255 // Set sounds

Callers 5

PageInDoorFunction · 0.85
PageInWeaponFunction · 0.85
PageInShipFunction · 0.85
PageInGenericFunction · 0.85
PageInAllDataFunction · 0.85

Calls 1

Tested by

no test coverage detected