| 162 | } |
| 163 | |
| 164 | bool levelkeypad::ValidateCurrentGoal() { |
| 165 | int num_goals = Level_goals.GetNumGoals(); |
| 166 | |
| 167 | if (num_goals > 0) { |
| 168 | if (m_current_goal < 0 || m_current_goal >= num_goals) |
| 169 | m_current_goal = 0; |
| 170 | |
| 171 | return true; |
| 172 | } else { |
| 173 | m_current_goal = -1; |
| 174 | return false; |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | bool levelkeypad::ValidateCurrentItem() { |
| 179 | if (ValidateCurrentGoal()) { |
nothing calls this directly
no test coverage detected