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

Method OnSelendokPshipPulldown

editor/WorldObjectsPlayerDialog.cpp:626–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626void CWorldObjectsPlayerDialog::OnSelendokPshipPulldown() {
627 int i, cur;
628 char name[200];
629
630 cur = SendDlgItemMessage(IDC_PSHIP_PULLDOWN, CB_GETCURSEL, 0, 0);
631 SendDlgItemMessage(IDC_PSHIP_PULLDOWN, CB_GETLBTEXT, cur, (LPARAM)(LPCTSTR)name);
632
633 i = FindShipName(name);
634
635 if (i == -1) {
636 mprintf(0, "Possible corrupted ship list, but probably nothing.");
637 UpdateDialog();
638 }
639
640 D3EditState.current_ship = i;
641 UpdateDialog();
642}
643
644// When closing, save all our checked out ships locally so we know
645// what stuff to flag as "checked out" the next time we start up

Callers

nothing calls this directly

Calls 1

FindShipNameFunction · 0.85

Tested by

no test coverage detected