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

Method OnLevelNextGoalButton

editor/levelkeypad.cpp:574–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574void levelkeypad::OnLevelNextGoalButton() {
575 int num_goals = Level_goals.GetNumGoals();
576
577 if (m_current_goal < num_goals - 1) {
578 m_current_goal++;
579 } else {
580 m_current_goal = 0;
581 }
582 m_current_item = 0;
583
584 UpdateDialog();
585}
586
587void levelkeypad::OnLevelNewGoalButton() {
588 m_current_goal = Level_goals.AddGoal(true);

Callers

nothing calls this directly

Calls 1

GetNumGoalsMethod · 0.80

Tested by

no test coverage detected