Explorar o código

Replaced call to makeFullPathName to expandPath to take advantage of the expando functionality

capnlove %!s(int64=12) %!d(string=hai) anos
pai
achega
5a4d5442e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      engine/source/graphics/TextureManager.cc

+ 1 - 1
engine/source/graphics/TextureManager.cc

@@ -891,7 +891,7 @@ TextureObject *TextureManager::loadTexture(const char* pTextureKey, TextureHandl
 GBitmap *TextureManager::loadBitmap( const char* pTextureKey, bool recurse, bool nocompression )
 {
     char fileNameBuffer[512];
-    Platform::makeFullPathName( pTextureKey, fileNameBuffer, 512 );
+    Con::expandPath( fileNameBuffer, sizeof(fileNameBuffer), pTextureKey );
     GBitmap *bmp = NULL;
 
     // Loop through the supported extensions to find the file.