| 555 | } |
| 556 | |
| 557 | void CWorldSoundsDialog::OnSelendokSoundPulldown() { |
| 558 | int i, cur; |
| 559 | char name[200]; |
| 560 | |
| 561 | cur = SendDlgItemMessage(IDC_SOUND_PULLDOWN, CB_GETCURSEL, 0, 0); |
| 562 | SendDlgItemMessage(IDC_SOUND_PULLDOWN, CB_GETLBTEXT, cur, (LPARAM)(LPCTSTR)name); |
| 563 | |
| 564 | i = FindSoundName(name); |
| 565 | |
| 566 | if (i == -1) { |
| 567 | mprintf(0, "Possible corrupted sound list, but probably nothing."); |
| 568 | UpdateDialog(); |
| 569 | } |
| 570 | |
| 571 | D3EditState.current_sound = i; |
| 572 | UpdateDialog(); |
| 573 | } |
| 574 | |
| 575 | void CWorldSoundsDialog::UpdateDialog() { |
| 576 | CEdit *ebox; |
nothing calls this directly
no test coverage detected