File diff r6178:fc8bd2bde93a → r6179:c0508e7aefec
src/fios.cpp
Show inline comments
 
@@ -395,25 +395,25 @@ static byte FiosGetHeightmapListCallback
 
	 * .BMP BMP Based heightmap files
 
	 */
 

	
 
#ifdef WITH_PNG
 
	if (strcasecmp(ext, ".png") == 0) return FIOS_TYPE_PNG;
 
#endif /* WITH_PNG */
 

	
 
	if (strcasecmp(ext, ".bmp") == 0) return FIOS_TYPE_BMP;
 

	
 
	return FIOS_TYPE_INVALID;
 
}
 

	
 
// Get a list of Heightmaps
 
/* Get a list of Heightmaps */
 
FiosItem *FiosGetHeightmapList(int mode)
 
{
 
	static char *_fios_hmap_path = NULL;
 

	
 
	if (_fios_hmap_path == NULL) {
 
		_fios_hmap_path = MallocT<char>(MAX_PATH);
 
		strcpy(_fios_hmap_path, _paths.heightmap_dir);
 
	}
 

	
 
	_fios_path = _fios_hmap_path;
 

	
 
	return FiosGetFileList(mode, &FiosGetHeightmapListCallback);