Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. bool start_found=false;
  2. bool end_found = false;
  3.  
  4. for (int i = 0; i < width; i++)
  5. for (int j = 0; j < height; j++)
  6. {
  7. if (m_rectangles[i][j].boxType == BoxType.Start)
  8. start_found = true;
  9. if (m_rectangles[i][j].boxType == BoxType.End)
  10. end_found = true;
  11. }
  12. if (!start_found || !end_found)
  13. return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement