Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int xMax = 0, yMax = 0, maxPriority = -1;
- for (int x = 0; x < map.Width; x++)
- {
- for (int y = 0; y < map.Height; y++)
- {
- if (cellPriorities[x, y] > maxPriority)
- {
- maxPriority = cellPriorities[x, y];
- xMax = x;
- yMax = y;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment