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

Function audio1changecallback

Descent3/pilot.cpp:2647–2658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2645pilot *AudioTauntPilot;
2646tCustomListInfo *AudioTauntPilotSndInfo;
2647void audio1changecallback(int index) {
2648 if (index == 0) {
2649 AudioTauntPilot->set_multiplayer_data(NULL, "");
2650 return;
2651 } else {
2652 index--;
2653 char *p = GetStringInList(index, AudioTauntPilotSndInfo->files, AudioTauntPilotSndInfo->needed_size);
2654 if (p) {
2655 AudioTauntPilot->set_multiplayer_data(NULL, p);
2656 }
2657 }
2658}
2659
2660void audio2changecallback(int index) {
2661 if (index == 0) {

Callers

nothing calls this directly

Calls 2

GetStringInListFunction · 0.85
set_multiplayer_dataMethod · 0.80

Tested by

no test coverage detected