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

Method OnASPDelete

editor/AmbientSoundPattern.cpp:177–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void CAmbientSoundPattern::OnASPDelete() {
178 if (OutrageMessageBox(MBOX_YESNO, "Do you really want to delete the ambient sound pattern '%s'?",
179 AmbientSoundPatternName(m_current_asp)) == IDYES) {
180 asp *asp = &Ambient_sound_patterns[m_current_asp];
181
182 asp->name[0] = 0; // null string for name
183 mem_free(asp->sounds);
184 asp->num_sounds = 0;
185 m_current_asp = -1;
186
187 UpdateDialog();
188 }
189}
190
191void CAmbientSoundPattern::OnASPNew() {
192 asp *asp = &Ambient_sound_patterns[Num_ambient_sound_patterns];

Callers

nothing calls this directly

Calls 2

OutrageMessageBoxFunction · 0.85
AmbientSoundPatternNameFunction · 0.85

Tested by

no test coverage detected