]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Terrain.cpp
Switched all data access to the new methods
[lugaru.git] / Source / Terrain.cpp
index 9061f37559694f06f3bcb8ab4f8834f9da0367b7..c395ebf0b03113e54324005b566ca3b7139ac08e 100644 (file)
@@ -21,6 +21,8 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include "Game.h"
 #include "Terrain.h"
 #include "Objects.h"
+#include "Utils/Folders.h"
+
 extern XYZ viewer;
 extern float viewdistance;
 extern float fadestart;
@@ -407,7 +409,7 @@ bool Terrain::load(const char *fileName)
     ImageRec texture;
 
     //Load Image
-    load_image(ConvertFileName(fileName), texture);
+    load_image(Folders::getResourcePath(fileName).c_str(), texture);
 
     //Is it valid?
     if (texture.bpp > 24) {