Example #1
0
inline bool
RasterTerrain::LoadCache(FileCache &cache, Path path)
{
  bool success = false;

  FILE *file = cache.Load(terrain_cache_name, path);
  if (file != nullptr) {
    success = map.LoadCache(file);
    fclose(file);
  }

  return success;
}