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

Method OnMatPrevButton

editor/matcenkeypad.cpp:973–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

971}
972
973void matcenkeypad::OnMatPrevButton() {
974 int i;
975
976 if (!MatcenValid(m_matcen_id))
977 return;
978
979 for (i = m_matcen_id - 1; i >= 0; i--) {
980 if (Matcen[i]) {
981 m_matcen_id = i;
982 UpdateDialog();
983 return;
984 }
985 }
986
987 for (i = Num_matcens - 1; i >= m_matcen_id; i--) {
988 if (Matcen[i]) {
989 m_matcen_id = i;
990 UpdateDialog();
991 return;
992 }
993 }
994
995 UpdateDialog();
996}
997
998void matcenkeypad::OnMatNextButton() {
999 int i;

Callers

nothing calls this directly

Calls 1

MatcenValidFunction · 0.85

Tested by

no test coverage detected