Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool start_found=false;
- bool end_found = false;
- for (int i = 0; i < width; i++)
- for (int j = 0; j < height; j++)
- {
- if (m_rectangles[i][j].boxType == BoxType.Start)
- start_found = true;
- if (m_rectangles[i][j].boxType == BoxType.End)
- end_found = true;
- }
- if (!start_found || !end_found)
- return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement