From acf157b0cb9d8577a95b2fef6231fe2e8c5956f7 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 29 May 2010 13:45:11 +0200 Subject: [PATCH] Fixed: Updated dds rename in tilebank to also work with png. --- code/nel/src/3d/tile_bank.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/nel/src/3d/tile_bank.cpp b/code/nel/src/3d/tile_bank.cpp index 0a187ad21..e90e54214 100644 --- a/code/nel/src/3d/tile_bank.cpp +++ b/code/nel/src/3d/tile_bank.cpp @@ -389,6 +389,8 @@ void CTileBank::makeAllExtensionDDS () // Diffuse tmp= _TileVector[nTile].getRelativeFileName (CTile::diffuse); pos= tmp.rfind(".tga"); + if (pos == string::npos) + pos = tmp.rfind(".png"); if(pos!= string::npos) { tmp.replace(pos, 4, ".dds"); @@ -398,6 +400,8 @@ void CTileBank::makeAllExtensionDDS () // Additive. tmp= _TileVector[nTile].getRelativeFileName (CTile::additive); pos= tmp.rfind(".tga"); + if (pos == string::npos) + pos = tmp.rfind(".png"); if(pos!= string::npos) { tmp.replace(pos, 4, ".dds"); @@ -407,6 +411,8 @@ void CTileBank::makeAllExtensionDDS () // Alpha. tmp= _TileVector[nTile].getRelativeFileName (CTile::alpha); pos= tmp.rfind(".tga"); + if (pos == string::npos) + pos = tmp.rfind(".png"); if(pos!= string::npos) { tmp.replace(pos, 4, ".dds");