| 175 | } |
| 176 | |
| 177 | void 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 | |
| 191 | void CAmbientSoundPattern::OnASPNew() { |
| 192 | asp *asp = &Ambient_sound_patterns[Num_ambient_sound_patterns]; |
nothing calls this directly
no test coverage detected