Guest User

Untitled

a guest
Feb 26th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1.             int xMax = 0, yMax = 0, maxPriority = -1;
  2.             for (int x = 0; x < map.Width; x++)
  3.             {
  4.                 for (int y = 0; y < map.Height; y++)
  5.                 {
  6.                     if (cellPriorities[x, y] > maxPriority)
  7.                     {
  8.                         maxPriority = cellPriorities[x, y];
  9.                         xMax = x;
  10.                         yMax = y;
  11.                     }
  12.                 }
  13.             }
Advertisement
Add Comment
Please, Sign In to add comment