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

Method OnLevelPrevGoalButton

editor/levelkeypad.cpp:561–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void levelkeypad::OnLevelPrevGoalButton() {
562 int num_goals = Level_goals.GetNumGoals();
563
564 if (m_current_goal > 0) {
565 m_current_goal--;
566 } else {
567 m_current_goal = num_goals - 1;
568 }
569 m_current_item = 0;
570
571 UpdateDialog();
572}
573
574void levelkeypad::OnLevelNextGoalButton() {
575 int num_goals = Level_goals.GetNumGoals();

Callers

nothing calls this directly

Calls 1

GetNumGoalsMethod · 0.80

Tested by

no test coverage detected