| 1516 | } |
| 1517 | |
| 1518 | void CWorldObjectsGenericDialog::OnNolod() { |
| 1519 | // TODO: Add your control notification handler code here |
| 1520 | if (m_lod == 0) { |
| 1521 | MessageBox("You must have a hi-res model."); |
| 1522 | return; |
| 1523 | } |
| 1524 | |
| 1525 | else if (m_lod == 1) { |
| 1526 | FreePolyModel(Object_info[m_current].med_render_handle); |
| 1527 | Object_info[m_current].med_render_handle = -1; |
| 1528 | |
| 1529 | } else { |
| 1530 | FreePolyModel(Object_info[m_current].lo_render_handle); |
| 1531 | Object_info[m_current].lo_render_handle = -1; |
| 1532 | } |
| 1533 | |
| 1534 | UpdateDialog(); |
| 1535 | } |
| 1536 | |
| 1537 | void CWorldObjectsGenericDialog::OnHiresRadio() { |
| 1538 | m_lod = 0; |
nothing calls this directly
no test coverage detected