Prechádzať zdrojové kódy

Merge pull request #83 from capnlove/TextureManager_Fix

Replaced call to makeFullPathName to expandPath
Simon Love 12 rokov pred
rodič
commit
ea7f6462ec
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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.