Ejemplo n.º 1
0
int water_search( int argc, char *argv[])
{
    open_uo_data_files();
    for( u16 y = wyl; y < wyh; y++ )
    {
        for( u16 x = wxl; x < wxh; x++ )
        {
            if (has_water(x,y))
                cout << "W";
            else
                cout << ".";
        }
        cout << endl;
    }
    cout << endl;
    return 0;
}
Ejemplo n.º 2
0
static int water_search()
{
  u16 wxl = 1420, wxh = 1480, wyl = 1760, wyh = 1780;
  Core::open_uo_data_files();
  for (u16 y = wyl; y < wyh; y++)
  {
    for (u16 x = wxl; x < wxh; x++)
    {
      if (has_water(x, y))
        INFO_PRINT << "W";
      else
        INFO_PRINT << ".";
    }
    INFO_PRINT << "\n";
  }
  INFO_PRINT << "\n";
  return 0;
}