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

Method SelectPrev

editor/TableManage.cpp:339–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void GenericPageList::SelectPrev(void) {
340 if (m_SelectedNode == NULL)
341 return;
342
343 if (m_SelectedNode->prev == NULL) {
344 m_SelectedNode = m_tail;
345 m_SelectedIndex = (m_size - 1);
346 } else {
347 m_SelectedNode = m_SelectedNode->prev;
348 m_SelectedIndex--;
349 }
350}
351
352void GenericPageList::SelectNode(uint32_t list_index) {
353 uint32_t j;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected