|
|
@ -389,6 +389,8 @@ void CTileBank::makeAllExtensionDDS ()
|
|
|
|
// Diffuse
|
|
|
|
// Diffuse
|
|
|
|
tmp= _TileVector[nTile].getRelativeFileName (CTile::diffuse);
|
|
|
|
tmp= _TileVector[nTile].getRelativeFileName (CTile::diffuse);
|
|
|
|
pos= tmp.rfind(".tga");
|
|
|
|
pos= tmp.rfind(".tga");
|
|
|
|
|
|
|
|
if (pos == string::npos)
|
|
|
|
|
|
|
|
pos = tmp.rfind(".png");
|
|
|
|
if(pos!= string::npos)
|
|
|
|
if(pos!= string::npos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tmp.replace(pos, 4, ".dds");
|
|
|
|
tmp.replace(pos, 4, ".dds");
|
|
|
@ -398,6 +400,8 @@ void CTileBank::makeAllExtensionDDS ()
|
|
|
|
// Additive.
|
|
|
|
// Additive.
|
|
|
|
tmp= _TileVector[nTile].getRelativeFileName (CTile::additive);
|
|
|
|
tmp= _TileVector[nTile].getRelativeFileName (CTile::additive);
|
|
|
|
pos= tmp.rfind(".tga");
|
|
|
|
pos= tmp.rfind(".tga");
|
|
|
|
|
|
|
|
if (pos == string::npos)
|
|
|
|
|
|
|
|
pos = tmp.rfind(".png");
|
|
|
|
if(pos!= string::npos)
|
|
|
|
if(pos!= string::npos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tmp.replace(pos, 4, ".dds");
|
|
|
|
tmp.replace(pos, 4, ".dds");
|
|
|
@ -407,6 +411,8 @@ void CTileBank::makeAllExtensionDDS ()
|
|
|
|
// Alpha.
|
|
|
|
// Alpha.
|
|
|
|
tmp= _TileVector[nTile].getRelativeFileName (CTile::alpha);
|
|
|
|
tmp= _TileVector[nTile].getRelativeFileName (CTile::alpha);
|
|
|
|
pos= tmp.rfind(".tga");
|
|
|
|
pos= tmp.rfind(".tga");
|
|
|
|
|
|
|
|
if (pos == string::npos)
|
|
|
|
|
|
|
|
pos = tmp.rfind(".png");
|
|
|
|
if(pos!= string::npos)
|
|
|
|
if(pos!= string::npos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tmp.replace(pos, 4, ".dds");
|
|
|
|
tmp.replace(pos, 4, ".dds");
|
|
|
|