title: for loop in startcompass freezes
body: <p>I have a compass/radar for my game, code below, and when I call the function startcompass it freezes and does nothing, Can someone help its only a 16-16 compass.</p>
  <p>my problem is it doesn't show compass which is a char array</p>
  <pre><code>int startcompass()
  {
  cx = x;
  cy = y;
  for (int g_comp_y = 0; g_comp_y &lt; showy; g_comp_y++)
  {
      cy++;
      for (int g_comp_x = 0; g_comp_x &lt; showx; g_comp_x++)
      {
          compass[g_comp_y][cx] = map1[g_comp_y][cx];
      }
  }
  while (g_compass = 1)
  {
      for (int g_comp = 0; g_comp &lt; showx; g_comp++)
      {
          cout &lt;&lt; compass[g_comp] &lt;&lt; endl;
      }
              system(&quot;pause&gt;nul&quot;);
  }
  return 0;
  }
  </code></pre>